mirror of
https://github.com/clearml/clearml-session
synced 2025-02-12 07:24:43 +00:00
Added meaningful error message for symlink failure
This commit is contained in:
parent
e5db4890d9
commit
9f5b49b605
@ -708,7 +708,9 @@ def setup_user_env(param, task):
|
|||||||
try:
|
try:
|
||||||
os.symlink(os.path.abspath(os.path.join(os.path.abspath(sys.executable), '..', '..')), environment)
|
os.symlink(os.path.abspath(os.path.join(os.path.abspath(sys.executable), '..', '..')), environment)
|
||||||
print('Virtual environment are available at {}'.format(environment))
|
print('Virtual environment are available at {}'.format(environment))
|
||||||
except Exception:
|
except Exception as e:
|
||||||
|
print("Error: Exception while trying to create symlink. The Application will continue...")
|
||||||
|
print(e)
|
||||||
pass
|
pass
|
||||||
# set default user credentials
|
# set default user credentials
|
||||||
if param.get("user_key") and param.get("user_secret"):
|
if param.get("user_key") and param.get("user_secret"):
|
||||||
|
Loading…
Reference in New Issue
Block a user