better catch tkinter import
This commit is contained in:
parent
da3e0fdc4e
commit
0050b60f1a
@ -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, NameError) as e:
|
except (ImportError, NameError) as e:
|
||||||
TK_ENABLED = False
|
TK_ENABLED = False
|
||||||
else:
|
else:
|
||||||
TK_ENABLED = True
|
TK_ENABLED = True
|
||||||
|
Loading…
Reference in New Issue
Block a user