plakativ.py: use ImportError to cater for Python 2
This commit is contained in:
parent
1e0bde7027
commit
970ebb6659
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ import fitz
|
|||
try:
|
||||
import tkinter
|
||||
import tkinter.filedialog
|
||||
except ModuleNotFoundError:
|
||||
except ImportError:
|
||||
# dummy classes so that this also loads without tkinter
|
||||
class tkinter:
|
||||
class Frame:
|
||||
|
|
Loading…
Reference in a new issue