Skip to content

Commit 8681b7f

Browse files
committed
fix illegal syntax
1 parent 3c30169 commit 8681b7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adaptive/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,6 @@ def __call__(self, *args, **kwargs):
8080
raise TypeError(
8181
f"The attribute '{name}' is of {type_} instead of {type(x)}."
8282
)
83-
except AttributeError as e:
84-
raise e(f"Required attribute {name} not set in __init__.")
83+
except AttributeError:
84+
raise AttributeError(f"Required attribute {name} not set in __init__.")
8585
return obj

0 commit comments

Comments
 (0)