From d54dcd641dc7aacb88c5f2b7ff13dd5d1e95dc2b Mon Sep 17 00:00:00 2001 From: "Maxime Alves LIRMM@home" Date: Sat, 4 Dec 2021 00:28:30 +0100 Subject: [PATCH] [conf] fix secret tempfile creation --- halfapi/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/halfapi/conf.py b/halfapi/conf.py index 6379253..1ff897e 100644 --- a/halfapi/conf.py +++ b/halfapi/conf.py @@ -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: