yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #26496
[Bug 1204628] Re: exception.ClientConnectionError.__init__ throws an exception when it is passed an Exception type
** Changed in: glance
Status: New => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1204628
Title:
exception.ClientConnectionError.__init__ throws an exception when it
is passed an Exception type
Status in OpenStack Image Registry and Delivery Service (Glance):
Fix Released
Bug description:
While debugging I came across this stack trace:
File "/home/jbresnah/Dev/OpenStack/glance/glance/common/client.py", line 383, in do_request
headers=copy.deepcopy(headers))
File "/home/jbresnah/Dev/OpenStack/glance/glance/common/client.py", line 81, in wrapped
return func(self, method, url, body, headers)
File "/home/jbresnah/Dev/OpenStack/glance/glance/common/client.py", line 547, in _do_request
raise exception.ClientConnectionError(e)
File "/home/jbresnah/Dev/OpenStack/glance/glance/common/exception.py", line 45, in __init__
message = message % kwargs
TypeError: unsupported operand type(s) for %: 'error' and 'dict'
This can be recreated with the following:
def test_ex(self):
import glance.common.exception as ex10
e = Exception()
ex10.GlanceException(e)
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1204628/+subscriptions