Skip to content

Commit 75f68a8

Browse files
Update devito/ir/clusters/visitors.py
Co-authored-by: Ed Caunt <[email protected]>
1 parent bcaff4e commit 75f68a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

devito/ir/clusters/visitors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def __new__(cls, *args, mode='dense'):
141141
elif len(args) == 2:
142142
func, mode = args
143143
else:
144-
raise AssertionError('Too many args')
144+
raise ValueError(f"Either 1 or 2 arguments permitted, {len(args)} provided")
145145
obj = object.__new__(cls)
146146
obj.__init__(func, mode)
147147
return obj

0 commit comments

Comments
 (0)