mirror of
https://github.com/aquatix/digimarks.git
synced 2025-12-06 23:05:10 +01:00
Catch case where favicon could not be saved
This commit is contained in:
@@ -446,7 +446,11 @@ def updatebookmark(userkey, request, urlhash = None):
|
|||||||
bookmark.set_status_code()
|
bookmark.set_status_code()
|
||||||
|
|
||||||
if bookmark.http_status == 200:
|
if bookmark.http_status == 200:
|
||||||
bookmark.set_favicon()
|
try:
|
||||||
|
bookmark.set_favicon()
|
||||||
|
except IOError:
|
||||||
|
# Icon file could not be saved possibly, don't bail completely
|
||||||
|
pass
|
||||||
|
|
||||||
bookmark.save()
|
bookmark.save()
|
||||||
return bookmark
|
return bookmark
|
||||||
|
|||||||
Reference in New Issue
Block a user