Open johnsca opened 7 years ago
Got this for a ProxyError
type as well:
AttributeError: 'ProxyError' object has no attribute 'message'
File "conjureup/controllers/deploy/gui.py", line 245, in _do_deploy
await juju.deploy_service(application, default_series, msg_cb=msg_cb)
File "conjureup/juju.py", line 622, in deploy_service
app_inst = await app.juju.client.deploy(**deploy_args)
File "juju/model.py", line 1081, in deploy
entity = await self.charmstore.entity(entity_url, channel=channel)
File "juju/model.py", line 1926, in coro
return await self.loop.run_in_executor(None, method)
File "concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "theblues/charmstore.py", line 136, in entity
return self._meta(entity_id, includes, channel=channel)
File "theblues/charmstore.py", line 107, in _meta
data = self._get(url)
File "theblues/charmstore.py", line 83, in _get
message=exc.message)
The original failure that caused this was a DNS resolution failure, but in attempting to turn that into a
ServerError
, theblues failed with this. Using something likestr(exc)
would be safest, but you could also do something withgetattr()
. I think some exception types usemsg
rather thanmessage
, as well.