Skip to content

Commit f9f1efc

Browse files
hjmjohnsonericspod
andauthored
BUG: Request to call non-existent function on superclass (Project-MONAI#432)
File "monai/monai/monai/networks/layers/factories.py", line 141, in __getattr__: No attribute '__getattr__' on super [attribute-error] use __getattribute__ is a member of object so this will work. It will do member lookup in a way which bypasses __getattr__ and so avoid recursion with it amongst other things. Co-authored-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com>
1 parent 686f506 commit f9f1efc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

monai/networks/layers/factories.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def __getattr__(self, key):
138138
if key in self.factories:
139139
return key
140140

141-
return super().__getattr__(key)
141+
return super().__getattribute__(key)
142142

143143

144144
def split_args(args):

0 commit comments

Comments
 (0)