Clarify exception message in EHFactoryBase

This commit is contained in:
Kristóf Tóth 2019-08-30 15:28:11 +02:00
parent 9712ebf102
commit ffc06a64ee
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ class EventHandlerBuilder:
def _determine_type(self, provided_type):
type_ = provided_type or self._analyzer.event_handler_type or EventHandler
if not issubclass(type_, EventHandler):
raise ValueError("No type supplied!")
raise ValueError("Invalid type supplied!")
return type_
def build(self, connector):