diff options
-rwxr-xr-x | epy.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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: |