diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/python/modules/render_report.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/python/modules/render_report.py b/tests/python/modules/render_report.py index 6e3223140ce..58eae834879 100755 --- a/tests/python/modules/render_report.py +++ b/tests/python/modules/render_report.py @@ -431,6 +431,7 @@ class Report: # Run process crash = False + output = None try: output = subprocess.check_output(command) except subprocess.CalledProcessError as e: @@ -440,7 +441,8 @@ class Report: if verbose: print(" ".join(command)) - print(output.decode("utf-8")) + if output: + print(output.decode("utf-8")) # Detect missing filepaths and consider those errors for filepath, output_filepath in zip(remaining_filepaths[:], output_filepaths): |