mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-04-13 09:42:01 +00:00
Handling mercury errors.
This commit is contained in:
parent
644759d752
commit
f242a49d24
1 changed files with 4 additions and 0 deletions
|
@ -69,6 +69,10 @@ class TextImporter:
|
|||
return
|
||||
|
||||
doc = resp.json()
|
||||
if doc.get('error', False):
|
||||
logging.user(self.request, "~SN~FRFailed~FY to fetch ~FGoriginal text~FY: %s" % doc.get('messages', "[unknown merucry error]"))
|
||||
return
|
||||
|
||||
text = doc['content']
|
||||
title = doc['title']
|
||||
url = doc['url']
|
||||
|
|
Loading…
Add table
Reference in a new issue