ztane/python-Levenshtein

invalid input does not properly throw exceptions in all cases

maxbachmann opened this issue · 1 comments

Some of the API's do not properly throw exceptions on invalid input. Instead they simply return NULL.

>>> Levenshtein.matching_blocks(None, None, None)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
SystemError: <built-in function matching_blocks> returned NULL without setting an error