#10654 closed (fixed)
incorrect error message for missing config
Reported by: | gutworth | Owned by: | nobody |
---|---|---|---|
Component: | Core (Other) | Version: | 1.0 |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Design decision needed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
In django.conf.init, the ImportError for settings is reraised with a different message: "Could not import settings '%s' (Is it on sys.path? Does it have syntax errors?): %s"
The part about the syntax error is not correct because in that case a SyntaxError would be raised.
Attachments (1)
Change History (6)
comment:1 by , 16 years ago
Triage Stage: | Unreviewed → Design decision needed |
---|
by , 14 years ago
Attachment: | drop_incorrect_syntax_suggestion.patch added |
---|
comment:2 by , 14 years ago
I checked this and this error message only showed when there was actually an import error. If I caused a syntax error, then I saw a syntax error, not an import error.
comment:3 by , 14 years ago
Has patch: | set |
---|---|
milestone: | → 1.3 |
Note:
See TracTickets
for help on using tickets.
Tiny patch to drop syntax error suggestion