mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Handling broken original page server.
This commit is contained in:
parent
32cc9b8f2b
commit
ca70eac08f
1 changed files with 2 additions and 1 deletions
|
@ -201,6 +201,7 @@ class IconImporter(object):
|
|||
def fetch_image_from_page_data(self):
|
||||
image = None
|
||||
image_file = None
|
||||
content = None
|
||||
if self.page_data:
|
||||
content = self.page_data
|
||||
elif settings.BACKED_BY_AWS.get('pages_on_node'):
|
||||
|
@ -223,7 +224,7 @@ class IconImporter(object):
|
|||
try:
|
||||
content = gz.read()
|
||||
except IOError:
|
||||
content = None
|
||||
pass
|
||||
else:
|
||||
content = MFeedPage.get_data(feed_id=self.feed.pk)
|
||||
url = self._url_from_html(content)
|
||||
|
|
Loading…
Add table
Reference in a new issue