[Git][reproducible-builds/diffoscope][master] As UI/UX improvement, try and avoid printing an extended traceback if...
Chris Lamb (@lamby)
gitlab at salsa.debian.org
Thu Nov 16 13:54:55 UTC 2023
Chris Lamb pushed to branch master at Reproducible Builds / diffoscope
Commits:
bb887ddb by Chris Lamb at 2023-11-16T13:53:08+00:00
As UI/UX improvement, try and avoid printing an extended traceback if diffoscope runs out of memory.
However:
> Note that because of the underlying memory management architecture (C’s
> malloc() function), the interpreter may not always be able to completely
> recover from this situation; it nevertheless raises an exception so that a
> stack traceback can be printed, in case a run-away program was the cause.
— https://docs.python.org/2/library/exceptions.html#exceptions.MemoryError
- - - - -
1 changed file:
- diffoscope/main.py
Changes:
=====================================
diffoscope/main.py
=====================================
@@ -773,6 +773,9 @@ def main(args=None):
raise
logger.error("No space left on device. Diffoscope exiting.")
sys.exit(2)
+ except MemoryError:
+ logger.error("Out of memory. Diffoscope exiting.")
+ sys.exit(2)
except KeyboardInterrupt:
logger.error("Keyboard Interrupt")
sys.exit(2)
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/bb887ddb6e5763b15d4ed9bb448166901dc7253f
--
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/bb887ddb6e5763b15d4ed9bb448166901dc7253f
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20231116/1f1e18ba/attachment.htm>
More information about the rb-commits
mailing list