mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 13:21:33 +00:00
Clarify exception message in EHFactoryBase
This commit is contained in:
parent
9712ebf102
commit
ffc06a64ee
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user