mirror of
https://github.com/clearml/clearml-agent
synced 2025-03-03 18:52:22 +00:00
Print error in case Poetry configuration failed
This commit is contained in:
parent
ee3adf625f
commit
73ee33be99
@ -82,9 +82,13 @@ class PoetryConfig:
|
|||||||
def initialize(self, cwd=None):
|
def initialize(self, cwd=None):
|
||||||
if not self._initialized:
|
if not self._initialized:
|
||||||
self._initialized = True
|
self._initialized = True
|
||||||
|
try:
|
||||||
self._config("--local", "virtualenvs.in-project", "true", cwd=cwd)
|
self._config("--local", "virtualenvs.in-project", "true", cwd=cwd)
|
||||||
# self._config("repositories.{}".format(self.REPO_NAME), PYTHON_INDEX)
|
# self._config("repositories.{}".format(self.REPO_NAME), PYTHON_INDEX)
|
||||||
# self._config("http-basic.{}".format(self.REPO_NAME), *PYTHON_INDEX_CREDENTIALS)
|
# self._config("http-basic.{}".format(self.REPO_NAME), *PYTHON_INDEX_CREDENTIALS)
|
||||||
|
except Exception as ex:
|
||||||
|
print("Exception: {}\nError: Failed configuring Poetry virtualenvs.in-project".format(ex))
|
||||||
|
raise
|
||||||
|
|
||||||
def get_api(self, path):
|
def get_api(self, path):
|
||||||
# type: (Path) -> PoetryAPI
|
# type: (Path) -> PoetryAPI
|
||||||
|
Loading…
Reference in New Issue
Block a user