From aead89262f332882b9eea930c1cbe0ef7e64cb2a Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Mon, 13 Apr 2026 01:52:59 +0200 Subject: [PATCH] Cleanup --- sbapp/sideband/core.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sbapp/sideband/core.py b/sbapp/sideband/core.py index 0e6c958..e2b978c 100644 --- a/sbapp/sideband/core.py +++ b/sbapp/sideband/core.py @@ -849,10 +849,9 @@ class SidebandCore(): plugin_globals["SidebandTelemetryPlugin"] = SidebandTelemetryPlugin RNS.log("Loading plugin \""+str(file)+"\"", RNS.LOG_NOTICE) plugin_path = os.path.join(plugins_path, file) - try: - 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) + RNS.log(f"Error loading plugin \"{file}\": {e}", RNS.LOG_ERROR) continue plugin_class = plugin_globals["plugin_class"]