better catch tkinter import

master
Kevin Froman 2018-09-03 22:30:15 -05:00
parent da3e0fdc4e
commit 0050b60f1a
1 changed files with 1 additions and 1 deletions

View File

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