summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorAaron L. Zeng <me@bcc32.com>2022-07-12 01:05:04 -0400
committerMartin Michlmayr <tbm@cyrius.com>2022-07-13 13:08:50 +0800
commit4898e57bdd247f1f2a18ca1217a89e7f1105caae (patch)
tree4ead4f1ae42da47241e3ae48af675e72c68b045a /contrib
parentbf1684d63d950823e6f4ff91bae649e28a6c5fdf (diff)
downloadfork-ledger-4898e57bdd247f1f2a18ca1217a89e7f1105caae.tar.gz
fork-ledger-4898e57bdd247f1f2a18ca1217a89e7f1105caae.tar.bz2
fork-ledger-4898e57bdd247f1f2a18ca1217a89e7f1105caae.zip
Fix SIGABRT when python subcommand raises an exception
Before, `ledger python -- -c 'raise RuntimeError'` would terminate messily via SIGABRT, printing the following: terminate called after throwing an instance of 'int' [1] 2151711 abort (core dumped) ledger python -c 'raise RuntimeError' This change makes the python subcommand throw a standard C++ exception rather than just a plain int, which is never caught and triggers the SIGABRT. Now, the process prints the uncaught Python exception as usual and then exits with exit code 1.
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions