add message of raised exception to new exception

This commit is contained in:
iLLiCiTiT 2021-11-26 18:08:09 +01:00
parent dc1e6f5b20
commit 6785a054b7

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