changeset 139:a0866ad63d93

fix another syntax error andadd the error handling to detect it
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 24 Jan 2011 12:37:14 -0800
parents 96234eec1a04
children 56b14dd2e3da
files autobot/projects/__init__.py autobot/projects/autobot/__init__.py
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/autobot/projects/__init__.py	Mon Jan 24 12:31:11 2011 -0800
+++ b/autobot/projects/__init__.py	Mon Jan 24 12:37:14 2011 -0800
@@ -30,8 +30,8 @@
 for package in packages:
     try:
         module = imp.load_package('autobot.projects.'+package, imp.find_module(package, [here])[1])
-    except:
-        print >> sys.stderr, "Could not import autobot.projects." + package
+    except Exception, e:
+        print >> sys.stderr, "Could not import autobot.projects.%s : %s" % (package, e)
         continue
     for attr in dir(module):
         try:
--- a/autobot/projects/autobot/__init__.py	Mon Jan 24 12:31:11 2011 -0800
+++ b/autobot/projects/autobot/__init__.py	Mon Jan 24 12:37:14 2011 -0800
@@ -7,7 +7,7 @@
   factory to test autobot
   """
 
-  sources = {'hg': ['http://k0s.org/mozilla/hg/autobot'])
+  sources = {'hg': ['http://k0s.org/mozilla/hg/autobot']}
 
   def __init__(self, slaveport=7357, htmlport=7358):