Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fa8b9c commit d6607b0Copy full SHA for d6607b0
1 file changed
src/runtime/exceptions.cs
@@ -104,7 +104,7 @@ internal static void Initialize()
104
foreach (FieldInfo fi in type.GetFields(BindingFlags.Public | BindingFlags.Static))
105
{
106
using var op = Runtime.PyObject_GetAttrString(exceptions_module.obj, fi.Name);
107
- if (@op.IsNull())
+ if (!@op.IsNull())
108
109
fi.SetValue(type, op.MoveToPyObject());
110
}
0 commit comments