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 Peter Inglesby)

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 Peter Inglesby, 8 years ago

Owner: changed from nobody to Peter Inglesby
Status: newassigned

comment:2 by Peter Inglesby, 8 years ago

Has patch: set
Last edited 8 years ago by Tim Graham (previous) (diff)

comment:3 by Tim Graham, 8 years ago

Patch needs improvement: set
Triage Stage: UnreviewedAccepted

comment:4 by Tim Graham, 7 years ago

Peter, are you still planning to provide a patch here?

comment:5 by Peter Inglesby, 7 years ago

Description: modified (diff)
Summary: Genuine ImportError masked by exception handling code when loading shellLoading shell crashes when pythonrc file contains error
Note: See TracTickets for help on using tickets.
Back to Top