Mercurial > hg > autobot
diff autobot/projects/__init__.py @ 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 | 1abbe826d0f3 |
children | cb9ad0b04140 |
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: