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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user