aboutsummaryrefslogtreecommitdiffstats
path: root/becommands
diff options
context:
space:
mode:
authorThomas Gerigk <tgerigk@gmx.de>2006-04-03 18:54:45 +0200
committerThomas Gerigk <tgerigk@gmx.de>2006-04-03 18:54:45 +0200
commit6cd159334b3d23e515926a566c751f1fc006bfe9 (patch)
tree44300f6475a8ebadf7559d76bd4680df7ab26e83 /becommands
parent28da7287b32e070034b8c093938effeedb2eb54e (diff)
downloadbugseverywhere-6cd159334b3d23e515926a566c751f1fc006bfe9.tar.gz
Catch AttributeError when a command has no help() def'd.
Diffstat (limited to 'becommands')
-rw-r--r--becommands/help.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/becommands/help.py b/becommands/help.py
index fc89207..2f37ec2 100644
--- a/becommands/help.py
+++ b/becommands/help.py
@@ -27,7 +27,11 @@ def execute(args):
for name, module in cmdutil.iter_commands():
print "be %s\n %s" % (name, module.__doc__)
else:
- print cmdutil.help(args[0])
+ try:
+ print cmdutil.help(args[0])
+ except AttributeError:
+ print "No help available"
+
return