catch exceptions in tp_str when calling ToString.