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	Thu Jun 28 09:19:08 2007 -0700
+++ b/mercurial/commands.py	Thu Jun 28 21:16:25 2007 -0700
@@ -1395,6 +1395,8 @@
         try:
             ct = mod.cmdtable
         except AttributeError:
+            ct = None
+        if not ct:
             ui.status(_('no commands defined\n'))
             return