Skip to content

Commit 7e43ab0

Browse files
committed
Cleanup
1 parent ae118ea commit 7e43ab0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/runtime/Types/DynamicClassObject.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.Dynamic;
4-
using System.Reflection;
53
using System.Runtime.CompilerServices;
64

75
using RuntimeBinder = Microsoft.CSharp.RuntimeBinder;
@@ -94,6 +92,7 @@ public static NewReference tp_getattro(BorrowedReference ob, BorrowedReference k
9492
// e.g hasattr uses this method to check if the attribute exists. If we throw anything other than AttributeError,
9593
// hasattr will throw instead of catching and returning False.
9694
Exceptions.SetError(Exceptions.AttributeError, exception.Message);
95+
return default;
9796
}
9897
}
9998

0 commit comments

Comments
 (0)