Skip to content

Commit 8c988dc

Browse files
authored
Update jupyter_server/services/events/handlers.py
1 parent d182961 commit 8c988dc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

jupyter_server/services/events/handlers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ def validate_model(
8282
message = f"Missing `{key}` in the JSON request body."
8383
raise Exception(message)
8484
schema_id = cast(str, data.get("schema_id"))
85+
# The case where a given schema_id isn't found,
86+
# jupyter_events raises a useful error, so there's no need to
87+
# handle that case here.
8588
schema = registry.get(schema_id)
8689
version = int(cast(int, data.get("version")))
8790
if schema.version != version:

0 commit comments

Comments
 (0)