Commit fec7ec1b authored by BERJON Matthieu's avatar BERJON Matthieu

Fix of secret bug

I fixed a bug related to the test of the secret key existence as an
environment variable.
Signed-off-by: BERJON Matthieu's avatarMatthieu Berjon <matthieu.berjon@inria.fr>
parent 0c76d766
......@@ -2,7 +2,7 @@
import os
import sys
if os.environ['ALLGO_SECRET_KEY'] == '':
if os.environ.get('ALLGO_SECRET_KEY') is None:
if os.path.exists('.env'):
print('Importing environment from .env...')
for line in open('.env'):
......
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