瀏覽代碼

Ignore unicode error in subprocess call

Signed-off-by: Joffrey F <[email protected]>
Joffrey F 8 年之前
父節點
當前提交
962330120d
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      compose/cli/__init__.py

+ 6 - 0
compose/cli/__init__.py

@@ -34,3 +34,9 @@ except OSError:
     # pip command is not available, which indicates it's probably the binary
     # distribution of Compose which is not affected
     pass
+except UnicodeDecodeError:
+    # ref: https://github.com/docker/compose/issues/4663
+    # This could be caused by a number of things, but it seems to be a
+    # python 2 + MacOS interaction. It's not ideal to ignore this, but at least
+    # it doesn't make the program unusable.
+    pass