diff options
author | Aanand Prasad <aanand.prasad@gmail.com> | 2016-08-02 11:44:25 +0100 |
---|---|---|
committer | Aanand Prasad <aanand.prasad@gmail.com> | 2016-08-02 11:44:25 +0100 |
commit | b3a4d76d4faf172efcb1c0fc691cd1b50c786447 (patch) | |
tree | 909058bf08d5aa41ded330cca8980aad9a4521dd /compose/cli | |
parent | 6ce066274ed6595b1d624b0b6ec69db41f39135f (diff) |
Handle connection errors on project initialization
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
Diffstat (limited to 'compose/cli')
-rw-r--r-- | compose/cli/command.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compose/cli/command.py b/compose/cli/command.py index 2c70d31a..02035428 100644 --- a/compose/cli/command.py +++ b/compose/cli/command.py @@ -8,6 +8,7 @@ import ssl import six +from . import errors from . import verbose_proxy from .. import config from ..config.environment import Environment @@ -110,7 +111,8 @@ def get_project(project_dir, config_path=None, project_name=None, verbose=False, host=host, environment=environment ) - return Project.from_config(project_name, config_data, client) + with errors.handle_connection_errors(client): + return Project.from_config(project_name, config_data, client) def get_project_name(working_dir, project_name=None, environment=None): |