Opened 7 years ago

Closed 7 years ago

#27670 closed Bug (fixed)

Loading shell crashes when pythonrc file contains error

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 (7)

comment:1 by Peter Inglesby, 7 years ago

Owner: changed from nobody to Peter Inglesby
Status: newassigned

comment:2 by Peter Inglesby, 7 years ago

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

comment:3 by Tim Graham, 7 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

comment:6 by Tim Graham, 7 years ago

Patch needs improvement: unset
Triage Stage: AcceptedReady for checkin

comment:7 by Tim Graham <timograham@…>, 7 years ago

Resolution: fixed
Status: assignedclosed

In 0ba57c3:

Fixed #27670 -- Prevented shell crash on error in .pythonrc.

Note: See TracTickets for help on using tickets.
Back to Top