From 970ebb6659d5f0776d79bc8a0e6434c565a7c0c2 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Mon, 1 Jul 2019 01:59:50 +0200 Subject: [PATCH] plakativ.py: use ImportError to cater for Python 2 --- plakativ.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plakativ.py b/plakativ.py index 2421c84..c3d9864 100644 --- a/plakativ.py +++ b/plakativ.py @@ -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: