Merge "Show the file name when there is an error loading an image metadef file"
This commit is contained in:
commit
809d88c75c
|
@ -212,7 +212,10 @@ def _populate_metadata(meta, metadata_path=None, merge=False,
|
|||
with open(file) as json_file:
|
||||
metadata = json.load(json_file)
|
||||
except Exception as e:
|
||||
LOG.error(encodeutils.exception_to_unicode(e))
|
||||
LOG.error(_LE("Failed to parse json file %(file_path)s while "
|
||||
"populating metadata due to: %(error_msg)s"),
|
||||
{"file_path": file,
|
||||
"error_msg": encodeutils.exception_to_unicode(e)})
|
||||
continue
|
||||
|
||||
values = {
|
||||
|
|
Loading…
Reference in New Issue