Fix try/catch formatting
Merge pull request #6269 from lucasmichot/5.0-try-catch

[5.0] Fixed try/catch Formatting