#27670: Loading shell crashes when pythonrc file contains error
-------------------------------------+-------------------------------------
     Reporter:  Peter Inglesby       |                    Owner:  Peter
                                     |  Inglesby
         Type:  Bug                  |                   Status:  assigned
    Component:  Core (Management     |                  Version:  1.10
  commands)                          |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  1
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Description changed by Peter Inglesby:

Old description:

> When I run `./manage.py shell`, I get `ImportError: Couldn't load any of
> the specified interfaces.`
>
> 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`.
>
> Pull request incoming.

New description:

 If a pythonrc file (either `~/.pythonrc`, or `$PYTHONHOME`) causes an
 exception, then `./manage.py shell` crashes.

 By contrast, CPython prints the exception and continues.

--

--
Ticket URL: <https://code.djangoproject.com/ticket/27670#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.7f705a10c14efc6510a3cd9e6a9cd45d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to