Andrew, I do not think that the c++ code "try" is going to work -- it is never used anywhere else and probably for a good reason.  Is there an alternative?

    Fileext reading error handling for bg render

commit cac447973db936f7d5594c83521c34f3e5a9c187
Author: Andrew Randrianasulu <randrianasulu@gmail.com>
Date:   Wed Aug 30 05:27:10 2023 +0300