ID 604152 - exportImagesFlattened() does not raise the IOError exception

Follow

Problem summary
exportImagesFlattened() does not raise the IOError exception
 
Customer reported version
Mari 7.1v2
 
Steps to reproduce
  1. Hardcode in the source code for exportImagesFlattened() to always raise the IOError exception
     
  2. Using the Python Console palette, run a script that includes this function and uses a try/except block to do something with the exception, such as:
channel = mari.current.geo().createChannel("myChannel", 512, 512, mari.Mari.Image.DEPTH_FLOAT) layer = channel.createPaintableLayer("Layer", None, mari.Color(0.5, 0.5, 0.5, 1.0)) results_path = r"C:\\tmp\\myChannel.$UDIM.exr" try:     channel.exportImagesFlattened(results_path, mari.Image.DISABLE_SMALL_UNIFORMS) except Exception as e:     print(e)
 
Expected behaviour
The exception to be raised in the Python Console output.
 
Actual behaviour
No exception is raised. This means users who create export widgets using Python aren't able to add to their widgets a warning if the export fails.
 
Workaround
Unknown.
 
Reproduced by support
This issue was reproduced by the engineering team in Mari 7.1v2.
 

    We're sorry to hear that

    Please tell us why