Skip to content

Commit b9251ab

Browse files
committed
Don't fail if login page doesn't exist for a notebook
* jupyter-rest-api.el (jupyter-api-request-xsrf-cookie): Do it.
1 parent 674af04 commit b9251ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jupyter-rest-api.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,8 @@ this will cause errors in the URL library."
295295
;; FIXME: It is not reliable to attempt to get the xsrf cookie as
296296
;; a side effect of requesting the login page since it may not
297297
;; always exist.
298-
(jupyter-api-http-request (oref client url) "login" "GET"))))
298+
(ignore-errors
299+
(jupyter-api-http-request (oref client url) "login" "GET")))))
299300

300301
(defun jupyter-api-url-cookies (url)
301302
"Return the list of cookies for URL."

0 commit comments

Comments
 (0)