We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e77643f commit a14a70dCopy full SHA for a14a70d
src/JSObjectProxy.cc
@@ -438,7 +438,9 @@ PyObject *JSObjectProxyMethodDefinitions::JSObjectProxy_repr(JSObjectProxy *self
438
}
439
} else {
440
// clear any exception that was just set
441
- PyErr_Clear();
+ if (PyErr_Occurred()) {
442
+ PyErr_Clear();
443
+ }
444
445
if (_PyUnicodeWriter_WriteASCIIString(&writer, "<cannot repr type>", 19) < 0) {
446
goto error;
0 commit comments