#19674: AttributeError: 'Command' object has no attribute 'style'
--------------------------------------------+-------------------------
     Reporter:  stefankoegl                 |      Owner:  nobody
         Type:  Bug                         |     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 testing #19665 (currently at
 c87f89c0db9314d26a3ad9afceb812e2d2f07f96) another (possibly related)
 exception was raised when executing the command

 {{{#!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 225, in run_from_argv
     stderr = getattr(self, 'stderr', OutputWrapper(sys.stderr,
 self.style.ERROR))
 AttributeError: 'Command' object has no attribute 'style'
 }}}

 Again, as no part of the trace refers to code of my application, I assume
 a bug in Django 1.5.

 The same command does not raise any exceptions with Django 1.4.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19674>
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 https://groups.google.com/groups/opt_out.


Reply via email to