better catch tkinter import

master
Kevin Froman 2018-09-03 22:28:56 -05:00
parent 0106721cd0
commit da3e0fdc4e
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ import logger, config, sys
from onionrblockapi import Block from onionrblockapi import Block
try: try:
import tkinter import tkinter
except (ModuleNotFoundError, ImportError) as e: except (ModuleNotFoundError, ImportError, NameError) as e:
TK_ENABLED = False TK_ENABLED = False
else: else:
TK_ENABLED = True TK_ENABLED = True