Skip to content

Commit

Permalink
Only consider 400-599 as errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamcik committed Jun 24, 2017
1 parent 9ce0338 commit ecbe024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mopidy_spotify/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def _request_with_retries(self, method, url, *args, **kwargs):
backoff_time = self._parse_retry_after(response)
result = self._decode(response)

if status_code >= 400:
if status_code >= 400 and status_code < 600:
logger.debug('Fetching %s failed: %s',
prepared_request.url, status_code)

Expand Down

0 comments on commit ecbe024

Please sign in to comment.