From 411e573917552a233a9f9752b511396e141c1265 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Wed, 10 Oct 2007 17:01:16 -0300 Subject: [PATCH] Bugfix: use hasattr() right when looking for help. --- pymin/dispatcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymin/dispatcher.py b/pymin/dispatcher.py index b5567a4..7e918bd 100644 --- a/pymin/dispatcher.py +++ b/pymin/dispatcher.py @@ -209,7 +209,7 @@ class Handler: if not hasattr(self, command.encode('utf-8')): raise HelpNotFoundError(command) handler = getattr(self, command.encode('utf-8')) - if not is_handler(handler) and not hasattr(handler): + if not is_handler(handler) and not hasattr(handler, 'handler_help'): raise HelpNotFoundError(command) return handler.handler_help -- 2.43.0