We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 99a0701 + e38ce03 commit eeedd83Copy full SHA for eeedd83
pupil_src/launchables/world.py
@@ -393,9 +393,12 @@ def handle_notifications(noti):
393
g_pool.plugins.add(g_pool.plugin_by_name["Dummy_Gaze_Mapper"])
394
g_pool.detection_mapping_mode = noti["mode"]
395
elif subject == "start_plugin":
396
- g_pool.plugins.add(
397
- g_pool.plugin_by_name[noti["name"]], args=noti.get("args", {})
398
- )
+ try:
+ g_pool.plugins.add(
+ g_pool.plugin_by_name[noti["name"]], args=noti.get("args", {})
399
+ )
400
+ except KeyError as err:
401
+ logger.error(f"Attempt to load unknown plugin: {err}")
402
elif subject == "stop_plugin":
403
for p in g_pool.plugins:
404
if p.class_name == noti["name"]:
0 commit comments