#19665: 'Command' object has no attribute 'stderr'
--------------------------------------------+-------------------------
Reporter: stefankoegl | Owner: nobody
Type: Uncategorized | Status: new
Component: Core (Management commands) | Version: 1.5-alpha-1
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------------+-------------------------
When running some self-written management commands with the current
stable/1.5.x branch (currently d571894fc09b34b8b43cb8f1790c743a47679851),
I get the following AttributeError
{{{#!python
$ ./manage.py assign-upload-timestamps
/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py:219:
DeprecationWarning: You have no filters defined on the 'mail_admins'
logging handler: adding implicit debug-false-only filter. See
http://docs.djangoproject.com/en/dev/releases/1.4/#request-exceptions-are-
now-always-logged
DeprecationWarning)
Traceback (most recent call last):
File "./manage.py", line 36, in <module>
execute_manager(settings)
File "/usr/local/lib/python2.7/dist-
packages/django/core/management/__init__.py", line 469, in execute_manager
utility.execute()
File "/usr/local/lib/python2.7/dist-
packages/django/core/management/__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.7/dist-
packages/django/core/management/base.py", line 226, in run_from_argv
self.stderr.write('%s: %s' % (e.__class__.__name__, e))
AttributeError: 'Command' object has no attribute 'stderr'
}}}
As no part of the trace refers to code of my application, I assume a bug
in Django 1.5.
--
Ticket URL: <https://code.djangoproject.com/ticket/19665>
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.