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

Handle DiscordServerError in main loop #23

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

StephenCWills
Copy link
Member

This is intended to handle HTTP errors that are likely to be temporary and would otherwise crash the bot, such as...

discord.errors.DiscordServerError: 503 Service Unavailable (error code: 0): upstream connect error or disconnect/reset before headers. reset reason: connection termination

I don't really know what I'm doing when it comes to Python, but this did compile with python3 -m py_compile discord_bot.py so at least the syntax should be okay.

@AJenbo AJenbo merged commit 8eee089 into diasurgical:main Feb 15, 2024
2 checks passed
@StephenCWills StephenCWills deleted the discord-server-error branch February 15, 2024 17:17
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.

2 participants