Skip to content

Commit 60d7cca

Browse files
lresendeZsailerblink1073
authored
Fix calculation of schema location (#1239)
Co-authored-by: Zachary Sailer <[email protected]> Co-authored-by: Steven Silvester <[email protected]>
1 parent e582e55 commit 60d7cca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

jupyter_server/serverapp.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1968,10 +1968,9 @@ def init_event_logger(self):
19681968
]
19691969
for schema_id in schema_ids:
19701970
# Get the schema path from the schema ID.
1971-
rel_schema_path = schema_id.lstrip(JUPYTER_SERVER_EVENTS_URI) + ".yaml"
1971+
rel_schema_path = schema_id.replace(JUPYTER_SERVER_EVENTS_URI + "/", "") + ".yaml"
19721972
schema_path = DEFAULT_EVENTS_SCHEMA_PATH / rel_schema_path
19731973
# Use this pathlib object to register the schema
1974-
# breakpoint()
19751974
self.event_logger.register_event_schema(schema_path)
19761975

19771976
def init_webapp(self):

0 commit comments

Comments
 (0)