Changes between Initial Version and Version 5 of Ticket #27670
- Timestamp:
- Jun 29, 2017, 6:34:13 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #27670
- Property Owner changed from to
- Property Status new → assigned
- Property Has patch set
- Property Patch needs improvement set
- Property Triage Stage Unreviewed → Accepted
- Property Summary Genuine ImportError masked by exception handling code when loading shell → Loading shell crashes when pythonrc file contains error
-
Ticket #27670 – Description
initial v5 1 When I run `./manage.py shell`, I get `ImportError: Couldn't load any of the specified interfaces.` 1 If a pythonrc file (either `~/.pythonrc`, or `$PYTHONHOME`) causes an exception, then `./manage.py shell` crashes. 2 2 3 It turns out that there's a problem with my readline installation which causes an `ImportError`. This `ImportError` is caught and discarded by the `except ImportError` in `django.core.management.commands.shell.Command.handle`. 4 5 Pull request incoming. 3 By contrast, CPython prints the exception and continues.