Fix for TypeError in python 3.7 (#113)
Fix for TypeError in python 3.7 (#113)

pytest with throw this error when running in version 3.7:
"TypeError: catching classes that do not inherit from BaseException is not allowed"
Changing the inheritance from object to Exception will fix this and is compatible back to version 2.7 and should cause no issues. 

This pytest sample test that will trigger the error in python 3.7:
   def test_init_with_bad_url(self):
        with pytest.raises(validators.ValidationFailure):
            assert True
kvesteri/validators