Skip to content

Commit

Permalink
handle exceptions which have no message
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean Do committed May 22, 2023
1 parent 2570dfe commit f9d3787
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/seedsigner/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,10 @@ def handle_exception(self, e) -> Destination:
# So we extract the Exception type and trim off any "foo.bar." namespacing:
last_line = traceback.format_exc().splitlines()[-1]
exception_type = last_line.split(":")[0].split(".")[-1]
exception_msg = last_line.split(":")[1]
if ":" in last_line:
exception_msg = last_line.split(":")[1]
else:
exception_msg = ""

# Scan for the last debugging line that includes a line number reference
line_info = None
Expand Down

0 comments on commit f9d3787

Please sign in to comment.