BaseException.message has been deprecated as of Python 2.6
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Low
|
Zhongyue Luo |
Bug Description
horizon/
messages.
horizon/
{"network": network_name, "msg": e.message})
horizon/
"msg": e.message})
horizon/
_('Unable to get network details: %s') % e.message)
I'll write a patch something like:
if hasattr(e, 'message'):
return e.message
else:
return str(e)
Changed in horizon: | |
assignee: | nobody → ZhongYue Luo (lzyeval) |
description: | updated |
Changed in horizon: | |
status: | New → Confirmed |
Changed in horizon: | |
status: | Confirmed → In Progress |
Changed in horizon: | |
importance: | Undecided → Low |
milestone: | none → essex-3 |
Changed in horizon: | |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | essex-3 → 2012.1 |
found/fixed all the deprecated code in the horizon package and ran test.
still may be more in test code.