From 7d74e98f4f8a47daac85b5de1ef6aa29a1637c06 Mon Sep 17 00:00:00 2001 From: marios Date: Fri, 29 Apr 2022 12:52:24 +0300 Subject: Bug fixes - Fixed KeyError in execute_in_tab - Changed the plugin process dispatch method, this *should* fix that annoying server hang issue. --- plugin_loader/utilities.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugin_loader/utilities.py') diff --git a/plugin_loader/utilities.py b/plugin_loader/utilities.py index fa47da79..39f9ca55 100644 --- a/plugin_loader/utilities.py +++ b/plugin_loader/utilities.py @@ -32,7 +32,6 @@ class Utilities: async def execute_in_tab(self, tab, run_async, code): try: result = await inject_to_tab(tab, code, run_async) - if "exceptionDetails" in result["result"]: return { "success": False, @@ -41,7 +40,7 @@ class Utilities: return { "success": True, - "result" : result["result"]["result"]["value"] + "result" : result["result"]["result"].get("value") } except Exception as e: return { -- cgit v1.2.3