#17369: Useless error messages in management command execution --------------------------------------------+-------------------- Reporter: valexeev | Owner: nobody Type: Bug | Status: new Component: Core (Management commands) | Version: SVN Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 1 --------------------------------------------+-------------------- Right now [https://code.djangoproject.com/browser/django/trunk/django/core/management/base.py#L208 BaseCommand.execute catches errors] and outputs quite useless portions of them.
For example, I'm trying to move quite large (and, unfortunately, underdocumented) project from server to server. I know that I need to install a few components, but I do not precisely know which. So I just try running "runserver" command and fixing any errors occuring. But soon an error like this appears: Error: No module named exceptions Ok, how can this error message help me to learn what's the problem? In my opinion, it can't. But when I remove the try-catch from aforementioned method, I get a helpful traceback: {{{ Traceback (most recent call last): File "manage.py", line 13, in <module> execute_manager(settings) [...] File "/[...]/utils.py", line 2, in <module> from sqlalchemy.exceptions import OperationalError ImportError: No module named exceptions }}} Oh, now I see that I obviously have problems with sqlalchemy installation. The source of the problem is pinned down and quickly fixed. The question is: what's the reason of having this try-catch in the first place, if it serves only to turn a helpful traceback into a useless 1-line error message? In my opinion, it should be removed altogether. -- Ticket URL: <https://code.djangoproject.com/ticket/17369> 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 post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.