From da3e0fdc4ec3ddf53f660839fa1352d00953f210 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Mon, 3 Sep 2018 22:28:56 -0500 Subject: [PATCH] better catch tkinter import --- onionr/static-data/default-plugins/boards/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onionr/static-data/default-plugins/boards/main.py b/onionr/static-data/default-plugins/boards/main.py index 61d66378..3f00098a 100644 --- a/onionr/static-data/default-plugins/boards/main.py +++ b/onionr/static-data/default-plugins/boards/main.py @@ -23,7 +23,7 @@ import logger, config, sys from onionrblockapi import Block try: import tkinter -except (ModuleNotFoundError, ImportError) as e: +except (ModuleNotFoundError, ImportError, NameError) as e: TK_ENABLED = False else: TK_ENABLED = True