]> git.llucax.com Git - software/pymin.git/blobdiff - pymin/dispatcher.py
Bugfix: use hasattr() right when looking for help.
[software/pymin.git] / pymin / dispatcher.py
index b5567a4747e47a854b232dc58a97e3559e65c629..7e918bd113bf6c1b37ad3c911d949dfc1307be21 100644 (file)
@@ -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 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
 
             raise HelpNotFoundError(command)
         return handler.handler_help