Merge branch 'master' into shellcommands

This commit is contained in:
Bernhard Mueller
2023-04-11 09:25:53 +07:00
committed by GitHub
14 changed files with 80 additions and 44 deletions

View File

@@ -42,9 +42,6 @@ def get_command(response):
# Use an empty dictionary if 'args' field is not present in 'command' object
arguments = command.get("args", {})
if not arguments:
arguments = {}
return command_name, arguments
except json.decoder.JSONDecodeError:
return "Error:", "Invalid JSON"