Commit 988d0147 by Bach Dániel

ignore empty lines

parent 62263f4e
...@@ -23,6 +23,8 @@ class SerialLineReceiverBase(LineReceiver, object): ...@@ -23,6 +23,8 @@ class SerialLineReceiverBase(LineReceiver, object):
raise NotImplementedError("Subclass must implement abstract method") raise NotImplementedError("Subclass must implement abstract method")
def lineReceived(self, data): def lineReceived(self, data):
if not data.strip(): # ignore empty lines
return
try: try:
data = json.loads(data) data = json.loads(data)
args = data.get('args', {}) args = data.get('args', {})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment