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

Improved exception handling for unexpected and malformed messages #25

Merged
merged 1 commit into from Feb 20, 2022

Conversation

m3dwards
Copy link
Contributor

@m3dwards m3dwards commented Feb 8, 2022

This PR improves exception handling in two ways.

Firstly, it cleans up the handling when logging into and sending messages via mastodon which should prevent this happening when mastodon times out.

Secondly, should some malformed message be delivered or some other area in the code where an unexpected exception slips though there is now a top level catch all exception handler in the job queue to prevent the (usually single) worker from dying.

I believe this fixes #13

@gkrizek gkrizek merged commit 85fa507 into gkrizek:master Feb 20, 2022
@laanwj
Copy link
Contributor

laanwj commented Feb 20, 2022

Good! I'm not sure this fixes the problem 100% because some issues in #13 were related to invalid incoming notifications, not mastodon signalling, but it should plug at least one source of worker crash issues.

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 this pull request may close these issues.

Bot stops working after exception in handling thread
3 participants