fix: if no title

This commit is contained in:
Silver Ghost 2022-11-04 12:53:54 +03:00
parent 0db979dba8
commit 64b55f2bb9
No known key found for this signature in database

View File

@ -11,7 +11,10 @@ class URL(APIView):
if url:
page = get_content(url)
title = page['title']
try:
title = page['title']
except KeyError:
title = ''
content = None
if settings.READABILITY_HOST: