Merge pull request #3799 from aanand/handle-connection-error-on-project-init
Handle connection errors on project initialization
This commit is contained in:
commit
267a243f80
3 changed files with 21 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue