aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xepy.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/epy.py b/epy.py
index 54245f0..0df16e8 100755
--- a/epy.py
+++ b/epy.py
@@ -2180,7 +2180,8 @@ class Reader:
self.ebook = ebook
try:
self.ebook.initialize()
- except Exception as e:
+ except (KeyboardInterrupt, Exception) as e:
+ self.ebook.cleanup()
if DEBUG:
raise e
else: