#14418: lazy instances are not resolved to string when used as Exception value
---------------------------+------------------------------------------------
 Reporter:  djoume         |       Owner:  nobody    
   Status:  new            |   Milestone:            
Component:  Uncategorized  |     Version:  1.2       
 Keywords:                 |       Stage:  Unreviewed
Has_patch:  0              |  
---------------------------+------------------------------------------------
 Hi,

 If in my django application I raise an Exception with a lazy string as
 value, the django 500 handler won't display the Exception class but will
 display instead "<django.utils.functional.__proxy__ object at 0x8e10bac>"

 Here is what I believe to be the minimal code to reproduce the issue
 {{{
 >>> from django.utils.translation import ugettext, ugettext_lazy
 >>> print Exception(ugettext(u'test'))
 test
 >>> print Exception(ugettext_lazy(u'test'))
 <django.utils.functional.__proxy__ object at 0x88ca4ac>
 }}}

 Should this be considered a bug in django or lazy string are not supported
 as exception value?

-- 
Ticket URL: <http://code.djangoproject.com/ticket/14418>
Django <http://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 this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to