mirror of
https://github.com/aquatix/digimarks.git
synced 2025-12-06 23:05:10 +01:00
Fix for the error catching
This commit is contained in:
@@ -162,8 +162,8 @@ class Bookmark(db.Model):
|
|||||||
try:
|
try:
|
||||||
result = requests.head(self.url)
|
result = requests.head(self.url)
|
||||||
self.http_status = result.status_code
|
self.http_status = result.status_code
|
||||||
except ConnectionError:
|
except requests.ConnectionError:
|
||||||
self.http_status = HTTP_CONNECTIONERROR
|
self.http_status = self.HTTP_CONNECTIONERROR
|
||||||
return self.http_status
|
return self.http_status
|
||||||
|
|
||||||
def set_favicon(self):
|
def set_favicon(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user