diff options
Diffstat (limited to 'main.py')
-rwxr-xr-x | main.py | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -3,10 +3,9 @@ import os import sys import getopt -import json import requests -from signald import Signal +from .libs.pysignald.signald import Signal from configparser import ConfigParser @@ -46,7 +45,7 @@ def startup(number): # TODO: try catch response = requests.post('http://localhost:18080', - json={"command": match.group(1), "arguments": strip(match.group(2))}) + json={"command": match.group(1), "arguments": match.group(2).strip()}) answer = "" replies = response.json()['reply'] |