I think it is, since this only happens if an incorrect 'signature' was passed.

Here's an interesting read about this https://github.com/pydata/pandas/wiki/Choosing-Exceptions-to-Raise