mirror of
https://github.com/aquatix/digimarks.git
synced 2025-12-06 22:05:09 +01:00
Crash fix
This commit is contained in:
@@ -343,7 +343,7 @@ class Bookmark(BaseModel):
|
|||||||
# Debug for the moment
|
# Debug for the moment
|
||||||
print(domain)
|
print(domain)
|
||||||
print(response.headers)
|
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
|
# No favicon found, likely
|
||||||
print('Skipping this favicon, needs fallback')
|
print('Skipping this favicon, needs fallback')
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user