summaryrefslogtreecommitdiffstats
path: root/src/ogRest.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/ogRest.py')
-rw-r--r--src/ogRest.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ogRest.py b/src/ogRest.py
index c21fcbb..1e4a3ee 100644
--- a/src/ogRest.py
+++ b/src/ogRest.py
@@ -96,7 +96,13 @@ class ogRest():
client.send(self.getResponse(ogResponses.BAD_REQUEST))
return
- ogThread.execcmd(self.msgqueue, cmd)
+ try:
+ ogThread.execcmd(self.msgqueue, cmd)
+ except ValueError as err:
+ print(err.args[0])
+ client.send(self.getResponse(ogResponses.BAD_REQUEST))
+ return
+
client.send(self.getResponse(ogResponses.OK))
def process_shellout(self, client):