Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions client/verta/verta/_internal_utils/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1297,6 +1297,7 @@ def get_notebook_filepath():
response = requests.get(
urljoin(server["url"], "api/sessions"),
params={"token": server.get("token", "")},
timeout=5,
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Self-review: This lookup runs against locally listed notebook servers, so a short timeout is enough to avoid blocking forever while preserving the existing behavior of trying the remaining servers and eventually raising OSError.

)
if response.ok:
for session in body_to_json(response):
Expand Down