* Fix for #49363 * Replaced str() with to_text() as more python version safe * Changed to comply to errors stragegy