Skip to content

Commit 816d054

Browse files
committed
__graalpython__: auto method wrapping - be more specific about the fallback case. On NotImplementedError
1 parent 0042e88 commit 816d054

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/lib-graalpython/__graalpython__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def make_wrapper(attribute, method):
114114
def wrapper(*args, **kwargs):
115115
try:
116116
return method(*args, **kwargs)
117-
except:
117+
except NotImplementedError:
118118
delegate_module = __import__(delegate_name)
119119
return getattr(delegate_module, attribute)(*args, **kwargs)
120120
return wrapper

0 commit comments

Comments
 (0)