Fix: Python error creating new reference renders for tests

Pull Request: https://projects.blender.org/blender/blender/pulls/145755
This commit is contained in:
Brecht Van Lommel
2025-08-31 14:56:59 +02:00
parent 1c360091aa
commit c984f6b67a

View File

@@ -158,7 +158,7 @@ def diff_output(test, oiiotool, fail_threshold, fail_percent, verbose, update):
try:
subprocess.check_output(command, stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as e:
if self.verbose:
if verbose:
msg = e.output.decode("utf-8", 'ignore')
for line in msg.splitlines():
# Ignore warnings for images without alpha channel.