Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions exiftool/experimental.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def execute_json_wrapper(self, filenames, params=None, retry_on_error=True):
execute_params.extend(params)
execute_params.extend(filenames)

result = self.execute_json(execute_params)
result = self.execute_json(*execute_params)

if result:
try:
Expand All @@ -145,7 +145,7 @@ def execute_json_wrapper(self, filenames, params=None, retry_on_error=True):
self.run()

if retry_on_error:
result = self.execute_json_filenames(filenames, params, retry_on_error=False)
result = self.execute_json_wrapper(filenames, params, retry_on_error=False)
else:
raise error
else:
Expand Down Expand Up @@ -322,7 +322,7 @@ def _check_result_filelist(file_paths, result):
returned_source_file = result[i].get('SourceFile')
requested_file = file_paths[i]

if returned_source_file != requested_file:
if Path(returned_source_file) != Path(requested_file):
raise IOError(f"exiftool returned data for file {returned_source_file}, but expected was {requested_file}")

# ----------------------------------------------------------------------------------------------------------------------