plakativ.py: use ImportError to cater for Python 2

This commit is contained in:
Johannes 'josch' Schauer 2019-07-01 01:59:50 +02:00
parent 1e0bde7027
commit 970ebb6659
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -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: