Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d6607b0

Browse files
committed
bad if condition
1 parent 2fa8b9c commit d6607b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/exceptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ internal static void Initialize()
104104
foreach (FieldInfo fi in type.GetFields(BindingFlags.Public | BindingFlags.Static))
105105
{
106106
using var op = Runtime.PyObject_GetAttrString(exceptions_module.obj, fi.Name);
107-
if (@op.IsNull())
107+
if (!@op.IsNull())
108108
{
109109
fi.SetValue(type, op.MoveToPyObject());
110110
}

0 commit comments

Comments
 (0)