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

View File

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