mirror of
https://github.com/aquatix/digimarks.git
synced 2025-12-06 23:05:10 +01:00
Crash fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user