Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 03f573d1 authored by GARNIER Laurent's avatar GARNIER Laurent
Browse files

Change [' '] by get(' ')

parent f8da0ea0
No related branches found
No related tags found
1 merge request!7Jupyter token 2021
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment