mirror of https://github.com/docker/compose.git
Fix unicode error - python2
If the name of a container doesn't exist and its name isn't utf-8 encoded you receive a stacktrace Signed-off-by: Thomas <thomas@9bitbyte.com>
This commit is contained in:
parent
9aa9758819
commit
a7ed1dcbf6
|
@ -703,7 +703,7 @@ def warn_for_swarm_mode(client):
|
|||
|
||||
class NoSuchService(Exception):
|
||||
def __init__(self, name):
|
||||
self.name = name
|
||||
self.name = name.decode('utf8')
|
||||
self.msg = "No such service: %s" % self.name
|
||||
|
||||
def __str__(self):
|
||||
|
|
Loading…
Reference in New Issue