Fixed --exiftool-option, #369, for real this time

This commit is contained in:
Rhet Turnbull 2021-02-08 21:59:20 -08:00
parent 7ed3115f36
commit 857e3db6cc
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,3 @@
""" version info """
__version__ = "0.40.11"
__version__ = "0.40.12"

View File

@ -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