From d6bfeb27620853a3ed35633df54b15c09e46111b Mon Sep 17 00:00:00 2001 From: Sims <38142618+suchmememanyskill@users.noreply.github.com> Date: Thu, 12 Dec 2024 21:20:59 +0100 Subject: [PATCH 1/3] Fix id keyerror on plugin uninstall --- backend/decky_loader/plugin/sandboxed_plugin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/decky_loader/plugin/sandboxed_plugin.py b/backend/decky_loader/plugin/sandboxed_plugin.py index 85ad6e13..20549500 100644 --- a/backend/decky_loader/plugin/sandboxed_plugin.py +++ b/backend/decky_loader/plugin/sandboxed_plugin.py @@ -186,6 +186,7 @@ async def on_new_message(self, message : str) -> str|None: if "uninstall" in data: self.uninstalling = data.get("uninstall") + return None; d: SocketResponseDict = {"type": SocketMessageType.RESPONSE, "res": None, "success": True, "id": data["id"]} try: From 7bc833cb58d4f50674e91f52fef4e987ee5041c4 Mon Sep 17 00:00:00 2001 From: Sims <38142618+suchmememanyskill@users.noreply.github.com> Date: Thu, 12 Dec 2024 22:11:41 +0100 Subject: [PATCH 2/3] This is python --- backend/decky_loader/plugin/sandboxed_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/decky_loader/plugin/sandboxed_plugin.py b/backend/decky_loader/plugin/sandboxed_plugin.py index 20549500..683902f0 100644 --- a/backend/decky_loader/plugin/sandboxed_plugin.py +++ b/backend/decky_loader/plugin/sandboxed_plugin.py @@ -186,7 +186,7 @@ async def on_new_message(self, message : str) -> str|None: if "uninstall" in data: self.uninstalling = data.get("uninstall") - return None; + return None d: SocketResponseDict = {"type": SocketMessageType.RESPONSE, "res": None, "success": True, "id": data["id"]} try: From 399446ba70b0f1544df56695bb387a248ee0209a Mon Sep 17 00:00:00 2001 From: AAGaming Date: Fri, 13 Dec 2024 22:36:13 -0500 Subject: [PATCH 3/3] too bad im changing it anyway --- backend/decky_loader/plugin/sandboxed_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/decky_loader/plugin/sandboxed_plugin.py b/backend/decky_loader/plugin/sandboxed_plugin.py index 683902f0..7d88719f 100644 --- a/backend/decky_loader/plugin/sandboxed_plugin.py +++ b/backend/decky_loader/plugin/sandboxed_plugin.py @@ -186,7 +186,7 @@ async def on_new_message(self, message : str) -> str|None: if "uninstall" in data: self.uninstalling = data.get("uninstall") - return None + return d: SocketResponseDict = {"type": SocketMessageType.RESPONSE, "res": None, "success": True, "id": data["id"]} try: