diff --git a/sbapp/sideband/core.py b/sbapp/sideband/core.py index fe8bcbf..0e6c958 100644 --- a/sbapp/sideband/core.py +++ b/sbapp/sideband/core.py @@ -849,7 +849,11 @@ class SidebandCore(): plugin_globals["SidebandTelemetryPlugin"] = SidebandTelemetryPlugin RNS.log("Loading plugin \""+str(file)+"\"", RNS.LOG_NOTICE) plugin_path = os.path.join(plugins_path, file) - exec(open(plugin_path).read(), plugin_globals) + try: + exec(open(plugin_path).read(), plugin_globals) + except Exception as e: + RNS.log("Error loading plugin \""+str(file)+"\": "+str(e), RNS.LOG_ERROR) + continue plugin_class = plugin_globals["plugin_class"] if plugin_class != None: