validate_dynamic_argspec now only raises KeyError exceptions
@@ -177,7 +177,7 @@ def validate_dynamic_argspec(argspec, kdims, streams):
elif argspec.varargs: # Posargs missing, passed to Callable directly
return None
else:
- raise Exception('Callback positional arguments {posargs} do not accommodate '
+ raise KeyError('Callback positional arguments {posargs} do not accommodate '
'required kdims {kdims}'.format(posargs=posargs, kdims=kdims))
