Bug fixes

- Fixed KeyError in execute_in_tab
- Changed the plugin process dispatch method, this *should* fix that annoying server hang issue.
This commit is contained in:
marios
2022-04-29 12:52:24 +03:00
parent fe1f6473e9
commit 7d74e98f4f
3 changed files with 7 additions and 11 deletions
+1 -2
View File
@@ -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 {