1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #19483 -- Improved import error message in contrib.comments

Thanks Valentin Lorentz for the report and the suggested fix.
This commit is contained in:
Claude Paroz
2012-12-16 21:08:47 +01:00
parent dbdd253860
commit ed711c4bd5
2 changed files with 18 additions and 13 deletions

View File

@@ -20,9 +20,9 @@ def get_comment_app():
# Try to import the package
try:
package = import_module(comments_app)
except ImportError:
except ImportError as e:
raise ImproperlyConfigured("The COMMENTS_APP setting refers to "\
"a non-existing package.")
"a non-existing package. (%s)" % e)
return package