diff options
author | benadha <benawiadha@gmail.com> | 2022-02-05 13:04:18 +0700 |
---|---|---|
committer | benadha <benawiadha@gmail.com> | 2022-02-05 13:04:18 +0700 |
commit | 91e2a9d419f8923f337771a8c6437822c75f204c (patch) | |
tree | f29b41a0ffe4d652244ffa92370ac68ce39a74f4 | |
parent | b388412cb799fe439ea8424d9b5960d5cf5889b0 (diff) | |
download | epy-91e2a9d419f8923f337771a8c6437822c75f204c.tar.gz |
Add debugger on parallel letter counting process
-rwxr-xr-x | epy.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) |