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

Added 504 error to HTTP_STATUS_CODE in resources.py #52

Merged
merged 1 commit into from
Oct 17, 2020

Conversation

chlorofomduck
Copy link

Description

I added a line for 504 server timeout errors to resources.py

Motivation and Context

I was getting a KeyError from pybooru exceptions because danbooru was returning a 504, so I added a line to the HTTP_STATUS_CODE dictionary so that it can handle this error correctly.

How Has This Been Tested?

I am currently running the version with this line changed in an app and I also ran the provisional_test.py (of course neither of these test for a 504 response but I'm not sure danbooru provides the capability to test for a 504 response so...)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project (PEP-8).
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read CONTRIBUTING.md.

@LuqueDaniel
Copy link
Owner

Thank you! for contribute.

@LuqueDaniel LuqueDaniel merged commit 12953df into LuqueDaniel:master Oct 17, 2020
@LuqueDaniel LuqueDaniel added this to the Pybooru Next Release milestone Oct 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants