mirror of
https://github.com/clearml/clearml
synced 2025-02-12 15:45:25 +00:00
Add specific error for password protected jupyter notebook (not supported)
This commit is contained in:
parent
9f0d7b5eb8
commit
80d3a02f4e
@ -499,7 +499,16 @@ class ScriptInfo(object):
|
|||||||
import warnings
|
import warnings
|
||||||
warnings.simplefilter('default', InsecureRequestWarning)
|
warnings.simplefilter('default', InsecureRequestWarning)
|
||||||
|
|
||||||
|
# send request to the jupyter server
|
||||||
|
try:
|
||||||
r.raise_for_status()
|
r.raise_for_status()
|
||||||
|
except Exception as ex:
|
||||||
|
_logger.warning('Failed accessing the jupyter server: {}'.format(ex))
|
||||||
|
if server_info.get('password'):
|
||||||
|
_logger.warning('Password protected Jupyter Notebook is not supported, '
|
||||||
|
'please use token based access')
|
||||||
|
return os.path.join(os.getcwd(), 'error_notebook_not_found.py')
|
||||||
|
|
||||||
notebooks = r.json()
|
notebooks = r.json()
|
||||||
|
|
||||||
cur_notebook = None
|
cur_notebook = None
|
||||||
|
Loading…
Reference in New Issue
Block a user