diff --git a/Lib/cmd.py b/Lib/cmd.py index 5f955a7c10b..5bbf4bcc7c8 100644 --- a/Lib/cmd.py +++ b/Lib/cmd.py @@ -214,13 +214,13 @@ class Cmd: # XXX check arg syntax try: func = getattr(self, 'help_' + arg) - except: + except AttributeError: try: doc=getattr(self, 'do_' + arg).__doc__ if doc: print doc return - except: + except AttributeError: pass print self.nohelp % (arg,) return