fix
This commit is contained in:
parent
64b55f2bb9
commit
8d35123499
@ -18,7 +18,10 @@ class URL(APIView):
|
||||
|
||||
content = None
|
||||
if settings.READABILITY_HOST:
|
||||
content = page['excerpt']
|
||||
try:
|
||||
content = page['excerpt']
|
||||
except KeyError:
|
||||
content = ''
|
||||
|
||||
url = URLModel(url=url, user=request.user,
|
||||
title=title, content=content)
|
||||
|
Loading…
Reference in New Issue
Block a user