fix: only add try/catch to codeblocks having the same amount of braces