Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Handle somehow the case if an on_route handle will throw an exception #105

Closed
mxschmitt opened this issue Jul 29, 2020 · 1 comment

Comments

@mxschmitt
Copy link
Member

Not sure if its only about on_route events. Probably the same in other event handlers.

Referring to a Slack chat, solution would be to force exit the program with a message and a 1 exit code.

@mxschmitt
Copy link
Member Author

mxschmitt commented Jul 29, 2020

Let's have a utility function which has a try/catch inside and terminates in the except block and prints the actual error message?
This should wrap all event handler/event callbacks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant