Skip to content

Commit

Permalink
Ignore 503 errors from links
Browse files Browse the repository at this point in the history
  • Loading branch information
jacebrowning committed Jul 20, 2020
1 parent a3e1588 commit 045fc8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion memegen/domain/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def validate_link(self):
log.warning("Connection timed out")
return True # assume URL is OK; it will be checked again

if response.status_code in [403, 429]:
if response.status_code in [403, 429, 503]:
self._warn(f"link is unavailable ({response.status_code})")
elif response.status_code >= 400:
self._error(f"link is invalid ({response.status_code})")
Expand Down

0 comments on commit 045fc8a

Please sign in to comment.