2011-12-01 08:03:05 |
Zhongyue Luo |
description |
horizon/horizon/horizon/forms.py:215: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
messages.error(request, _('%s') % e.message)
horizon/horizon/dashboards/nova/networks/forms.py:47: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
{"network": network_name, "msg": e.message})
horizon/dashboards/nova/networks/forms.py:173: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
"msg": e.message})
horizon/horizon/dashboards/nova/networks/views.py:105: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
_('Unable to get network details: %s') % e.message)
I'll write a patch something like:
if hasattr(e, 'message'):
return ustr(e.message)
try:
return ustr(e) |
horizon/horizon/horizon/forms.py:215: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
messages.error(request, _('%s') % e.message)
horizon/horizon/dashboards/nova/networks/forms.py:47: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
{"network": network_name, "msg": e.message})
horizon/dashboards/nova/networks/forms.py:173: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
"msg": e.message})
horizon/horizon/dashboards/nova/networks/views.py:105: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
_('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) |
|