Skip to content

Commit 6d35cc5

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

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

colour/io/image.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,8 +696,14 @@ def write_image_OpenImageIO(
696696
width, height, channels, bit_depth, attributes
697697
)
698698

699+
print(image_specification) # noqa: T201
699700
image_output = ImageOutput.create(path)
700701

702+
print(image_output) # noqa: T201
703+
704+
if not image_output:
705+
print(image_output.geterror()) # noqa: T201
706+
701707
image_output.open(path, image_specification)
702708
success = image_output.write_image(image)
703709

0 commit comments

Comments
 (0)