Private GIT

Skip to content
Snippets Groups Projects
Commit e71a41ac authored by Fernando's avatar Fernando
Browse files

Show image dir in warning message"unable to retrieve image"

parent 999ad6e8
Branches
Tags
No related merge requests found
...@@ -708,12 +708,12 @@ class GenericMetadata(): ...@@ -708,12 +708,12 @@ class GenericMetadata():
logger.log(u"Image already exists, not downloading", logger.DEBUG) logger.log(u"Image already exists, not downloading", logger.DEBUG)
return False return False
image_dir = ek.ek(os.path.dirname, image_path)
if not image_data: if not image_data:
logger.log(u"Unable to retrieve image, skipping", logger.WARNING) logger.log(u"Unable to retrieve image to save in {0}, skipping".format(str(image_dir)), logger.WARNING)
return False return False
image_dir = ek.ek(os.path.dirname, image_path)
try: try:
if not ek.ek(os.path.isdir, image_dir): if not ek.ek(os.path.isdir, image_dir):
logger.log(u"Metadata dir didn't exist, creating it at " + image_dir, logger.DEBUG) logger.log(u"Metadata dir didn't exist, creating it at " + image_dir, logger.DEBUG)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment