1
0
mirror of https://github.com/aquatix/digimarks.git synced 2025-12-06 20:55:10 +01:00

Really skip

This commit is contained in:
2018-03-23 13:32:59 +01:00
parent d7b2c28c96
commit 3835497918

View File

@@ -348,6 +348,7 @@ class Bookmark(BaseModel):
if response.headers['Content-Length'] == '0': if 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
# Default to 'image/png' # Default to 'image/png'
fileextension = '.png' fileextension = '.png'
if response.headers['content-type'] == 'image/jpeg': if response.headers['content-type'] == 'image/jpeg':