Skip to content

Commit 6e56c01

Browse files
committed
Raise a more helpful exception if not enough args.
1 parent 987d372 commit 6e56c01

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

microscope/cameras/SDK3.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@ def __call__(self, *args):
188188
i = 0
189189
ret = []
190190

191+
if len(args) < len(self.in_args):
192+
raise Exception ("Not enough arguments passed to %s" % self.name)
193+
191194
if self.buf_size_arg_pos >= 0:
192195
bs = args[self.buf_size_arg_pos]
193196
else:

0 commit comments

Comments
 (0)