From 6785a054b7abe3d33b25cee9776c66bb3d08bb59 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Fri, 26 Nov 2021 18:08:09 +0100 Subject: [PATCH] add message of raised exception to new exception --- openpype/plugins/publish/extract_review.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/openpype/plugins/publish/extract_review.py b/openpype/plugins/publish/extract_review.py index ba6ef17072..3ab6ffd489 100644 --- a/openpype/plugins/publish/extract_review.py +++ b/openpype/plugins/publish/extract_review.py @@ -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