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

Fix for the error catching

This commit is contained in:
2016-09-05 15:18:47 +02:00
parent 5fd8db8f43
commit 0e60f8f3cb

View File

@@ -162,8 +162,8 @@ class Bookmark(db.Model):
try:
result = requests.head(self.url)
self.http_status = result.status_code
except ConnectionError:
self.http_status = HTTP_CONNECTIONERROR
except requests.ConnectionError:
self.http_status = self.HTTP_CONNECTIONERROR
return self.http_status
def set_favicon(self):