Skip to content

Commit a3ef6e6

Browse files
committed
always raise an AttributeError as fallback when reading from a java module
1 parent 4958c2b commit a3ef6e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

graalpython/lib-graalpython/java.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ def __getattr__(key, default=None):
6161
try:
6262
return type(modname + key)
6363
except KeyError:
64-
raise AttributeError(key)
64+
pass
65+
raise AttributeError(key)
6566
return __getattr__
6667

6768
@staticmethod

0 commit comments

Comments
 (0)