From 0e60f8f3cb049ee872adeda362b9defb881139cc Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Mon, 5 Sep 2016 15:18:47 +0200 Subject: [PATCH] Fix for the error catching --- digimarks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/digimarks.py b/digimarks.py index eefeb45..8f33310 100644 --- a/digimarks.py +++ b/digimarks.py @@ -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):