File tree 1 file changed +10
-3
lines changed
src/graph_notebook/magics
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -471,9 +471,16 @@ def status(self, line):
471
471
logger .info (f'calling for status on endpoint { self .graph_notebook_config .host } ' )
472
472
status_res = self .client .status ()
473
473
status_res .raise_for_status ()
474
- res = status_res .json ()
475
- logger .info (f'got the response { res } ' )
476
- return res
474
+ try :
475
+ res = status_res .json ()
476
+ logger .info (f'got the json format response { res } ' )
477
+ return res
478
+ except ValueError :
479
+ logger .info (f'got the HTML format response { status_res .text } ' )
480
+ print ("For more information on the status of your Blazegraph cluster, please visit: " )
481
+ print ()
482
+ print (f'http://{ self .graph_notebook_config .host } :{ self .graph_notebook_config .port } /blazegraph/#status' )
483
+ return status_res
477
484
478
485
@line_magic
479
486
@display_exceptions
You can’t perform that action at this time.
0 commit comments