[conf] fix secret tempfile creation

This commit is contained in:
Maxime Alves LIRMM@home 2021-12-04 00:28:30 +01:00
parent 7060d201ec
commit d54dcd641d
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ SECRET = CONFIG.get('project', {}).get(
if not SECRET:
# TODO: Create a temporary secret
_, SECRET = tempfile.mkstemp()
with open('SECRET', 'w') as secret_file:
with open(SECRET, 'w') as secret_file:
secret_file.write(str(uuid.uuid4()))
try: