aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbenadha <benawiadha@gmail.com>2022-02-05 13:04:18 +0700
committerbenadha <benawiadha@gmail.com>2022-02-05 13:04:18 +0700
commit91e2a9d419f8923f337771a8c6437822c75f204c (patch)
treef29b41a0ffe4d652244ffa92370ac68ce39a74f4
parentb388412cb799fe439ea8424d9b5960d5cf5889b0 (diff)
downloadepy-91e2a9d419f8923f337771a8c6437822c75f204c.tar.gz
Add debugger on parallel letter counting process
-rwxr-xr-xepy.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/epy.py b/epy.py
index 3b4ef8b..948b7c0 100755
--- a/epy.py
+++ b/epy.py
@@ -2422,7 +2422,9 @@ class Reader:
# forking will raise
# zlib.error: Error -3 while decompressing data: invalid distance too far back
self._process_counting_letter.start()
- except:
+ except Exception as e:
+ if DEBUG:
+ raise e
self._multiprocess_support = False
if not self._multiprocess_support:
self.letters_count = count_letters(self.ebook)