mirror of
https://github.com/docker/compose.git
synced 2025-07-31 01:24:15 +02:00
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):
|
class NoSuchService(Exception):
|
||||||
def __init__(self, name):
|
def __init__(self, name):
|
||||||
self.name = name
|
self.name = name.decode('utf8')
|
||||||
self.msg = "No such service: %s" % self.name
|
self.msg = "No such service: %s" % self.name
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user