From 8486cc4b3747459ecbc9a8b339407bbd58509668 Mon Sep 17 00:00:00 2001
From: GARNIER Laurent <laurent.garnier@irisa.fr>
Date: Tue, 28 Jun 2022 12:31:21 +0000
Subject: [PATCH] Update allgo/__init__.py

---
 allgo/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/allgo/__init__.py b/allgo/__init__.py
index 935a214..eef4f3f 100644
--- a/allgo/__init__.py
+++ b/allgo/__init__.py
@@ -151,7 +151,7 @@ class Init:
         # Check all methods
         # notebook, local_file, env_variable, arg_variable
         if(API_parameters['auth_method'] == 'notebook'):
-            if (API_parameters.get('API_token') = none):
+            if (not API_parameters.get('API_token')):
                 API_parameters['API_token'] = secrets.token_hex(16)
                 print('Notebook token created')
             elif(API_token_valid):
-- 
GitLab