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