Don't do anything on empty line submit

This commit is contained in:
Bridget
2020-04-12 22:44:20 +02:00
parent 89e8c3f9bd
commit e550fd1bad

View File

@@ -24,6 +24,9 @@ class Shell(cmd.Cmd):
return "exit"
return line
def emptyline(self):
return None
def send_cmd(self, url: str, cmd: str) -> Dict:
data = {"secret_key": SECRET_KEY,
"command": cmd}