summaryrefslogtreecommitdiffstats
path: root/Lib/cmd.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/cmd.py')
-rw-r--r--Lib/cmd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/cmd.py b/Lib/cmd.py
index 5f955a7..5bbf4bc 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