Fix for issue 1

Fix for https://github.com/bitniftee/search/issues/1

All tests still pass, but due to my inexperience with the package, there may be a better way to do this or I maybe misunderstanding why the exception is being raised. If somebody could cast their eye over this and merge if appropriate that would be amazing.

Cheers
Rob