Skip to content

Commit

Permalink
add more debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ingwinlu committed Feb 1, 2015
1 parent f20e46b commit fd1eaa5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions twitch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ def downloadWebData(self, url, headers=None):
break
except Exception as err:
if not isinstance(err, URLError):
self.logger.debug("Error %s during HTTP Request, abort", repr(err))
raise # propagate non-URLError
self.logger.debug("Error %s during HTTP Request, retrying", repr(err))
else:
raise TwitchException(TwitchException.HTTP_ERROR)
return data
Expand Down

0 comments on commit fd1eaa5

Please sign in to comment.