Opened 8 years ago
Last modified 7 years ago
#27670 closed Bug
Loading shell crashes when pythonrc file contains error — at Version 5
Reported by: | Peter Inglesby | Owned by: | Peter Inglesby |
---|---|---|---|
Component: | Core (Management commands) | Version: | 1.10 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
If a pythonrc file (either ~/.pythonrc
, or $PYTHONHOME
) causes an exception, then ./manage.py shell
crashes.
By contrast, CPython prints the exception and continues.
Change History (5)
comment:1 by , 8 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:3 by , 8 years ago
Patch needs improvement: | set |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:5 by , 7 years ago
Description: | modified (diff) |
---|---|
Summary: | Genuine ImportError masked by exception handling code when loading shell → Loading shell crashes when pythonrc file contains error |
Note:
See TracTickets
for help on using tickets.
PR