mirror of
https://github.com/viq/NewsBlur.git
synced 2025-04-13 09:38:09 +00:00
Handling no content when finding feeds.
This commit is contained in:
parent
5c1adfd403
commit
f4d559187b
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ class FeedFinder(object):
|
|||
logging.warn("Error while getting '{0}'".format(url))
|
||||
logging.warn("{0}".format(e))
|
||||
return None
|
||||
if not skip_user_agent and r.status_code == 403:
|
||||
if not skip_user_agent and r.status_code in [403, 204]:
|
||||
return self.get_feed(url, skip_user_agent=True)
|
||||
return r.text
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue