Merge pull request #2328 from pypeclub/feature/log_ffprobe_error

General: FFprobe error exception contain original error message
This commit is contained in:
Jakub Trllo 2021-11-29 18:15:59 +01:00 committed by GitHub
commit ac9cd782e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1010,10 +1010,11 @@ class ExtractReview(pyblish.api.InstancePlugin):
streams = ffprobe_streams(
full_input_path_single_file, self.log
)
except Exception:
except Exception as exc:
raise AssertionError((
"FFprobe couldn't read information about input file: \"{}\""
).format(full_input_path_single_file))
"FFprobe couldn't read information about input file: \"{}\"."
" Error message: {}"
).format(full_input_path_single_file, str(exc)))
# Try to find first stream with defined 'width' and 'height'
# - this is to avoid order of streams where audio can be as first