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
+1
@@ -304,6 +304,7 @@ class Handler(SimpleHTTPRequestHandler):
|
|||||||
pieces = cmd.split(" ")
|
pieces = cmd.split(" ")
|
||||||
handler = self.get_parsers().get(pieces[0])
|
handler = self.get_parsers().get(pieces[0])
|
||||||
result = handler(pieces)
|
result = handler(pieces)
|
||||||
|
if(result is not None):
|
||||||
response.extend(result)
|
response.extend(result)
|
||||||
response.extend(b"\n")
|
response.extend(b"\n")
|
||||||
return response
|
return response
|
||||||
|
|||||||
Reference in new issue
Block a user