← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1554517] [NEW] str() should not be used for exception message

 

You have been subscribed to a public bug:

In openstack_auth/backend.py, str() is used for logging of exception messages, but exception message can contain multi-byte strings and if so str() will fail with UnicodeEncodeError.
We should use '%s' for logging (with more appropriate description).

https://github.com/openstack/django_openstack_auth/blob/d779eb6fe3dedcd37e777f1530fa24a1a9343353/openstack_auth/backend.py#L113-L127

** Affects: horizon
     Importance: Low
     Assignee: Akihiro Motoki (amotoki)
         Status: Confirmed


** Tags: i18n
-- 
str() should not be used for exception message
https://bugs.launchpad.net/bugs/1554517
You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).