We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8af9d25 commit b141654Copy full SHA for b141654
src/sagemaker/local/utils.py
@@ -145,6 +145,6 @@ def get_docker_host():
145
docker_context_host_url = json.loads(docker_context_string)[0]['Endpoints']['docker']['Host']
146
parsed_url = urlparse(docker_context_host_url)
147
docker_host = parsed_url.hostname if parsed_url.hostname and parsed_url.scheme=="tcp" else "localhost"
148
- except Exception as e:
+ except Exception:
149
docker_host = "localhost"
150
return docker_host
0 commit comments