summaryrefslogtreecommitdiff
path: root/compose/cli/errors.py
diff options
context:
space:
mode:
authorThomas Grainger <tom.grainger@procensus.com>2016-03-17 13:59:51 +0000
committerThomas Grainger <tom.grainger@procensus.com>2016-03-17 15:13:01 +0000
commit20bf05a6e3b79370a680da844dc6c59e77cda293 (patch)
treec88dca3a1a5c2640bc687560755326c3132f2149 /compose/cli/errors.py
parent371ea479f5995a31145ee1f597aae8c08110aa25 (diff)
Fix TypeError in Exception handling
Traceback (most recent call last): File "/tmp/tmp.02tgGaAGtW/docker-compose/bin/docker-compose", line 11, in <module> sys.exit(main()) File "/tmp/tmp.02tgGaAGtW/docker-compose/lib/python3.4/site-packages/compose/cli/main.py", line 68, in main log_api_error(e) File "/tmp/tmp.02tgGaAGtW/docker-compose/lib/python3.4/site-packages/compose/cli/main.py", line 89, in log_api_error if 'client is newer than server' in e.explanation: TypeError: 'str' does not support the buffer interface Signed-off-by: Thomas Grainger <tagrain@gmail.com>
Diffstat (limited to 'compose/cli/errors.py')
-rw-r--r--compose/cli/errors.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/compose/cli/errors.py b/compose/cli/errors.py
index a16cad2f..2f2907ae 100644
--- a/compose/cli/errors.py
+++ b/compose/cli/errors.py
@@ -66,7 +66,7 @@ def handle_connection_errors(client):
def log_api_error(e, client_version):
- if 'client is newer than server' not in e.explanation:
+ if b'client is newer than server' not in e.explanation:
log.error(e.explanation)
return