Commit b0fb463a authored by Daniele Venzano's avatar Daniele Venzano

Docker exception messages no longer need to be decoded

parent d503aad1
......@@ -201,9 +201,9 @@ class SwarmClient:
if cont is not None:
if e.explanation == b'no resources available to schedule container':
raise ZoeNotEnoughResourcesException(message=e.explanation.decode('utf-8'))
raise ZoeNotEnoughResourcesException(message=str(e))
raise ZoeException(message=e.explanation.decode('utf-8'))
raise ZoeException(message=str(e))
except Exception as e:
if cont is not None:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment