diff mercurial/commands.py @ 4738:c41a404ac387

Handle extensions with defined but empty cmdtable
author Brendan Cully <brendan@kublai.com>
date Thu, 28 Jun 2007 21:16:25 -0700
parents eadfaa9ec487
children 44e17f5029d0
line wrap: on
line diff
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -1395,6 +1395,8 @@ def help_(ui, name=None, with_version=Fa
         try:
             ct = mod.cmdtable
         except AttributeError:
+            ct = None
+        if not ct:
             ui.status(_('no commands defined\n'))
             return