From ffc06a64eec5de9e11039caa117fcc56fe161d60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Fri, 30 Aug 2019 15:28:11 +0200 Subject: [PATCH] Clarify exception message in EHFactoryBase --- tfw/internals/event_handling/event_handler_factory_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tfw/internals/event_handling/event_handler_factory_base.py b/tfw/internals/event_handling/event_handler_factory_base.py index dd76329..8c5df21 100644 --- a/tfw/internals/event_handling/event_handler_factory_base.py +++ b/tfw/internals/event_handling/event_handler_factory_base.py @@ -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):