Replace str(e) with "%s" % e or unicode(e)
Bug #816077 reported by
Jay Pipes
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Low
|
Justin Shepherd |
Bug Description
Ed noticed several places where str(e) is used. Since error strings can be localized, it is reasonable to expect non-ASCII characters to appear in them. Either unicode(e) or "%s" % e should be used instead.
Related branches
lp:~jshepher/glance/lp816077
- Brian Waldon (community): Approve
- Jay Pipes (community): Approve
-
Diff: 166 lines (+16/-16)7 files modifiedbin/glance (+6/-6)
bin/glance-control (+1/-1)
bin/glance-upload (+1/-1)
glance/api/cached_images.py (+1/-1)
glance/api/v1/images.py (+5/-5)
glance/common/exception.py (+1/-1)
glance/image_cache/__init__.py (+1/-1)
Changed in glance: | |
assignee: | nobody → Justin Shepherd (jshepher) |
status: | Triaged → In Progress |
Changed in glance: | |
milestone: | none → diablo-4 |
Changed in glance: | |
status: | In Progress → Fix Committed |
Changed in glance: | |
milestone: | diablo-4 → 2011.3 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.