From a45cb1d38bdce4c6f1faa82a981e7ed27d1de0c6 Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Wed, 11 May 2016 13:06:41 +0200 Subject: [PATCH] Typo, bad variable name --- cas_server/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cas_server/utils.py b/cas_server/utils.py index 7fa6e70..c3b2c32 100644 --- a/cas_server/utils.py +++ b/cas_server/utils.py @@ -38,7 +38,7 @@ def JsonResponse(request, data): def import_attr(path): """transform a python module.attr path to the attr""" if not isinstance(path, str): - return string + return path if "." not in path: ValueError("%r should be of the form `module.attr` and we just got `attr`" % path) module, attr = path.rsplit('.', 1)