From e366f3e471ff04bed1185a467fc5388e8d30020f Mon Sep 17 00:00:00 2001 From: jordan Date: Mon, 27 Dec 2010 18:26:21 +0000 Subject: [PATCH] Jira 504 patch, adding local variable to debug more easily when using IDE. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@633 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- forum/modules/__init__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/forum/modules/__init__.py b/forum/modules/__init__.py index a8a5665..cbac6ed 100644 --- a/forum/modules/__init__.py +++ b/forum/modules/__init__.py @@ -31,13 +31,14 @@ def get_modules_script(script_name): pass except: import traceback - logging.error("Error importing %s from module %s: \n %s" % ( + msg = "Error importing %s from module %s: \n %s" % ( script_name, m.__name__, traceback.format_exc() - )) + ) + logging.error(msg) return all -def get_modules_scipt_implementations(script_name, impl_class): +def get_modules_script_implementations(script_name, impl_class): scripts = get_modules_script(script_name) all_impls = {} -- 2.39.5