moksha/lib/helpers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 950e9851a05a1ac51a70512e0a31c539761ece21 Author: Luke Macken lmacken@redhat.com Date: Thu Feb 19 14:57:08 2009 -0500
Fix our get_main_app_config_path() method
diff --git a/moksha/lib/helpers.py b/moksha/lib/helpers.py index 96093c0..e8c4ca0 100644 --- a/moksha/lib/helpers.py +++ b/moksha/lib/helpers.py @@ -9,6 +9,7 @@ from repoze.what.authorize import check_authorization, NotAuthorizedError
from webob import Request
+import pylons import urllib import uuid import simplejson as json @@ -535,7 +536,7 @@ def get_main_app_config_path(): """ try: return pylons.config['__file__'] - except: + except KeyError: log.error('Cannot find main applications config file in ' 'pylons.config["__file__"]')