Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jhonabreul committed Dec 3, 2024
1 parent ae118ea commit 7e43ab0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/runtime/Types/DynamicClassObject.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Reflection;
using System.Runtime.CompilerServices;

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

Expand Down

0 comments on commit 7e43ab0

Please sign in to comment.