From 5de56929812b13b62593d73225b81a9bd78b1440 Mon Sep 17 00:00:00 2001 From: Bane Sullivan Date: Tue, 30 Jan 2024 12:32:11 -0800 Subject: [PATCH] Prevent failed entrypoints from spoiling the bunch --- jupyter_server_proxy/config.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jupyter_server_proxy/config.py b/jupyter_server_proxy/config.py index f0c1348f..156650b8 100644 --- a/jupyter_server_proxy/config.py +++ b/jupyter_server_proxy/config.py @@ -97,7 +97,11 @@ def get_entrypoint_server_processes(serverproxy_config): sps = [] for entry_point in entry_points(group="jupyter_serverproxy_servers"): name = entry_point.name - server_process_config = entry_point.load()() + try: + server_process_config = entry_point.load()() + except Exception as e: + warn(f"entry_point {name} was unable to be loaded: {str(e)}") + continue sps.append(make_server_process(name, server_process_config, serverproxy_config)) return sps