Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

Commit

Permalink
Bugfix: error message in image generation was buggy.
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Raspaud <martin.raspaud@smhi.se>
  • Loading branch information
mraspaud committed Feb 17, 2015
1 parent caaa9c2 commit fb3c4ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions trollduction/producer.py
Expand Up @@ -992,14 +992,14 @@ def run(self):
pub.send(str(msg))
LOGGER.debug("Sent message %s", str(msg))
except:
LOGGER.exception("Something wrong happened saving %s to %s",
str(obj),
str([tostring(item)
for item in file_items]))
for item in file_items:
if "thumbnail_size" in item.attrib:
item.attrib["thumbnail_size"] = str(
item.attrib["thumbnail_size"])
LOGGER.exception("Something wrong happened saving %s to %s",
str(obj),
str([tostring(item)
for item in file_items]))
finally:
self.prod_queue.task_done()

Expand Down

0 comments on commit fb3c4ed

Please sign in to comment.