mirror of
https://codeberg.org/diginaut/digimarks.git
synced 2026-05-06 19:14:09 +02:00
Crash fix
This commit is contained in:
+1
-1
@@ -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