1
0
mirror of https://github.com/aquatix/digimarks.git synced 2025-12-06 22:05:09 +01:00

Crash fix

This commit is contained in:
2018-03-23 14:27:47 +01:00
parent aee0515eae
commit ea4a7bdcd7

View File

@@ -343,7 +343,7 @@ class Bookmark(BaseModel):
# Debug for the moment
print(domain)
print(response.headers)
if response.headers['Content-Length'] == '0':
if 'Content-Length' in response.headers and response.headers['Content-Length'] == '0':
# No favicon found, likely
print('Skipping this favicon, needs fallback')
return