Fix exception handling
The exception `e` is printed on error, except the exception was never captured into the `e` variable in the first place.
This commit is contained in:
parent
53b80fbd52
commit
f7c15f5fda
1 changed files with 1 additions and 2 deletions
3
leafdrop
3
leafdrop
|
|
@ -263,8 +263,7 @@ def main() -> int:
|
|||
if __name__ == "__main__":
|
||||
try:
|
||||
exit(main())
|
||||
except Exception:
|
||||
except Exception as e:
|
||||
print("Something failed, please report this as a bug.")
|
||||
print(e)
|
||||
exit(1)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue