From ea4a7bdcd7a5273bf1b50948cbf38904f6f97df8 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Fri, 23 Mar 2018 14:27:47 +0100 Subject: [PATCH] Crash fix --- digimarks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/digimarks.py b/digimarks.py index e952fa5..6bbda01 100644 --- a/digimarks.py +++ b/digimarks.py @@ -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