| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Catch specific exceptions during packing to improve error handling.
|
I use raise. It propagate exception. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Replace bare except: with except Exception: in the pack() method's buffer reset handler.
Bare except: catches BaseException (including SystemExit and KeyboardInterrupt), which means pressing Ctrl+C during a pack operation would silently reset the buffer instead of propagating the interrupt. Using except Exception: preserves the buffer-reset behavior for actual serialization errors while allowing KeyboardInterrupt and SystemExit to propagate normally.