diff --git a/screenless/bureau/publications/publications.py b/screenless/bureau/publications/publications.py index 0bca42d..9f8dfa1 100644 --- a/screenless/bureau/publications/publications.py +++ b/screenless/bureau/publications/publications.py @@ -334,9 +334,13 @@ class Publications(Bureau): if len(fileext) > 4: fileext = ".jpg" filename = tempfile.mktemp(fileext) - print("fetching", entry.img, filename) - urllib.request.urlretrieve(entry.img, filename) - entry.img = "file://" + filename + try: + print("fetching", entry.img, filename) + urllib.request.urlretrieve(entry.img, filename) + entry.img = "file://" + filename + except urllib.error.HTTPError as err: + self.log.error(err) + entry.img = "" return entry