From 03f573d1f950b09a73dfb2b134caff98e9bbed8b Mon Sep 17 00:00:00 2001
From: GARNIER Laurent <laurent.garnier@irisa.fr>
Date: Tue, 28 Jun 2022 12:20:01 +0000
Subject: [PATCH] Change [' '] by get(' ')

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

diff --git a/allgo/__init__.py b/allgo/__init__.py
index 816c684..935a214 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 (not API_parameters['API_token']):
+            if (API_parameters.get('API_token') = none):
                 API_parameters['API_token'] = secrets.token_hex(16)
                 print('Notebook token created')
             elif(API_token_valid):
-- 
GitLab