Fixed --exiftool-option, #369, for real this time
This commit is contained in:
parent
7ed3115f36
commit
857e3db6cc
@ -1,3 +1,3 @@
|
||||
""" version info """
|
||||
|
||||
__version__ = "0.40.11"
|
||||
__version__ = "0.40.12"
|
||||
|
||||
@ -315,7 +315,13 @@ class ExifTool:
|
||||
if not json_str:
|
||||
return dict()
|
||||
|
||||
exifdict = json.loads(json_str)
|
||||
try:
|
||||
exifdict = json.loads(json_str)
|
||||
except Exception as e:
|
||||
# will fail with some commands, e.g --ext AVI which produces
|
||||
# 'No file with specified extension' instead of json
|
||||
return dict()
|
||||
|
||||
exifdict = exifdict[0]
|
||||
if not tag_groups:
|
||||
# strip tag groups
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user