mirror of
https://github.com/viq/NewsBlur.git
synced 2025-04-13 09:38:09 +00:00
Fixing handling of invalid feed url on share story feed finding.
This commit is contained in:
parent
355222549f
commit
cc615e6d04
1 changed files with 1 additions and 1 deletions
|
@ -490,7 +490,7 @@ class Feed(models.Model):
|
|||
if not feed and fetch and create:
|
||||
try:
|
||||
r = requests.get(url)
|
||||
except requests.ConnectionError:
|
||||
except (requests.ConnectionError, requests.models.InvalidURL):
|
||||
r = None
|
||||
if r and 'application/json' in r.headers.get('Content-Type'):
|
||||
feed = cls.objects.create(feed_address=url)
|
||||
|
|
Loading…
Add table
Reference in a new issue