Commit 2398f017 authored by Bruno Duyé's avatar Bruno Duyé

Minor: add missing alert when BEA_API_USER_ID environnement variable is not set

parent 2063f407
......@@ -230,6 +230,7 @@ def get_api_user_id_from_env():
"""
environnement_variable_name = 'BEA_API_USER_ID'
if not environnement_variable_name in os.environ:
log.error("Not found {} environnement variable. Please set it in order to use API.".format(environnement_variable_name))
exit(-1)
return os.environ[environnement_variable_name]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment