Output better error when validate() isn't implemented
This commit is contained in:
parent
1442b1e35f
commit
2da1f05326
@ -107,7 +107,8 @@ class BaseType:
|
||||
else:
|
||||
return
|
||||
else:
|
||||
raise NotImplementedError
|
||||
raise NotImplementedError("{} does not implement validate.".format(
|
||||
self.__class__.__name__))
|
||||
|
||||
|
||||
class String(BaseType):
|
||||
|
Loading…
Reference in New Issue
Block a user