Skip to content

Commit 6ba9674

Browse files
committed
Use ImageOutput.geterror.
1 parent 8d4a715 commit 6ba9674

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

colour/io/image.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,9 @@ def write_image_OpenImageIO(
698698

699699
image_output = ImageOutput.create(path)
700700

701+
if not image_output:
702+
print(image_output.geterror())
703+
701704
image_output.open(path, image_specification)
702705
success = image_output.write_image(image)
703706

0 commit comments

Comments
 (0)