mirror of
https://github.com/django/django.git
synced 2025-10-29 00:26:07 +00:00
[1.8.x] Fixed ImportError message in utils.module_loading.import_string()
Backport of c2b4967e76 from master
This commit is contained in:
committed by
Tim Graham
parent
66496c8403
commit
b62dc60c98
@@ -29,7 +29,7 @@ def import_string(dotted_path):
|
||||
return getattr(module, class_name)
|
||||
except AttributeError:
|
||||
msg = 'Module "%s" does not define a "%s" attribute/class' % (
|
||||
dotted_path, class_name)
|
||||
module_path, class_name)
|
||||
six.reraise(ImportError, ImportError(msg), sys.exc_info()[2])
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user