Skip to content

Commit

Permalink
Merge pull request #5 from pushshift/develop
Browse files Browse the repository at this point in the history
Fix tooManyRedirects error
  • Loading branch information
hroberts committed May 1, 2019
2 parents 0644e61 + 73587c3 commit fda3e87
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions feed_seeker/feed_seeker.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ def default_fetch_function(url):
else:
return ''

# ConnectionError for 404s, InvalidSchema for email addresses
except (requests.ConnectionError, InvalidSchema, RetryError):
# ConnectionError for 404s, InvalidSchema for email addresses, requests.TooManyRedirects
# for issues with a url giving too many redirect loops.
except (requests.ConnectionError, InvalidSchema, RetryError, requests.TooManyRedirects):
return ''


Expand Down

0 comments on commit fda3e87

Please sign in to comment.