The expected behavior is that there is no "__tracebackhide__" attribute, so use `getattr` instead of multiple try/except.