From 86cf3d5434f92c346a616d4131360cba9af2e1e0 Mon Sep 17 00:00:00 2001 From: SoulByte Date: Sat, 18 May 2013 14:32:36 +0200 Subject: [PATCH] Bugfix Now catches the exception, if the client did not send a pwd field. --- command.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/command.py b/command.py index f29412e..7cd7abb 100644 --- a/command.py +++ b/command.py @@ -18,6 +18,8 @@ def __init__(self, sock, data): self.error("Unable to decode request JSON") self._handle = False return + except KeyError: + pass missing = [] for k in self.required: if k in self.data: