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:
Elliott Sales de Andrade 2024-02-24 21:30:54 -05:00
commit f7c15f5fda

View file

@ -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)