Merge pull request #25 from SyntenyBio/jday1/shortterm-bugfix-24

Bugfix 24: Added meaningful error message for symlink failure
This commit is contained in:
Jake Henning 2023-07-18 23:35:49 +03:00 committed by GitHub
commit 2392e9a7d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -708,7 +708,9 @@ def setup_user_env(param, task):
try:
os.symlink(os.path.abspath(os.path.join(os.path.abspath(sys.executable), '..', '..')), 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
# set default user credentials
if param.get("user_key") and param.get("user_secret"):