mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Fixing logging for mercury parser error.
This commit is contained in:
parent
44571c08c1
commit
e74dde6e30
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ class TextImporter:
|
||||||
except JSONDecodeError:
|
except JSONDecodeError:
|
||||||
doc = None
|
doc = None
|
||||||
if not doc or doc.get('error', False):
|
if not doc or doc.get('error', False):
|
||||||
logging.user(self.request, "~SN~FRFailed~FY to fetch ~FGoriginal text~FY: %s" % doc.get('messages', "[unknown merucry error]"))
|
logging.user(self.request, "~SN~FRFailed~FY to fetch ~FGoriginal text~FY: %s" % (doc and doc.get('messages', None) or "[unknown mercury error]"))
|
||||||
return
|
return
|
||||||
|
|
||||||
text = doc['content']
|
text = doc['content']
|
||||||
|
|
Loading…
Add table
Reference in a new issue