Skip to content

Commit

Permalink
Merge pull request #27 from porridge/fix-traceback
Browse files Browse the repository at this point in the history
Print exception in a way that works outside exception context.
  • Loading branch information
Rudd-O authored Nov 10, 2022
2 parents 3f720e3 + a3689e4 commit 6e8c5c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ledgerhelpers/programs/addtrans.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def accounts_and_last_commodities_loaded(self, accounts, last_commos):
self.status.set_text("")

def journal_load_failed(self, e):
traceback.print_exc()
traceback.print_exception(e)
gui.FatalError(
"Add transaction loading failed",
"An unexpected error took place:\n%s" % e,
Expand Down

0 comments on commit 6e8c5c9

Please sign in to comment.