Commit ae3a4d12 authored by Daniele Venzano's avatar Daniele Venzano

Docker exception messages no longer need to be decoded

parent 58d02a1a
......@@ -201,9 +201,9 @@ class SwarmClient:
if cont is not None:
cont.remove(force=True)
if e.explanation == b'no resources available to schedule container':
raise ZoeNotEnoughResourcesException(message=e.explanation.decode('utf-8'))
raise ZoeNotEnoughResourcesException(message=str(e))
else:
raise ZoeException(message=e.explanation.decode('utf-8'))
raise ZoeException(message=str(e))
except Exception as e:
if cont is not None:
cont.remove(force=True)
......
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