mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-11-01 18:04:12 +08:00
If the handler doesn't return anything we need to handle that
This commit is contained in:
1 parent
2168ad555e
commit
511aebf085
1 file changed
+3
-2
+3
-2
@@ -304,8 +304,9 @@ class Handler(SimpleHTTPRequestHandler):
|
||||
pieces = cmd.split(" ")
|
||||
handler = self.get_parsers().get(pieces[0])
|
||||
result = handler(pieces)
|
||||
response.extend(result)
|
||||
response.extend(b"\n")
|
||||
if(result is not None):
|
||||
response.extend(result)
|
||||
response.extend(b"\n")
|
||||
return response
|
||||
|
||||
def get_parsers(self):
|
||||
|
||||
Reference in new issue
Block a user