diff --git a/src/preprocess.py b/src/preprocess.py index f88b3c2..586d907 100644 --- a/src/preprocess.py +++ b/src/preprocess.py @@ -100,10 +100,10 @@ def splitTopic(topic): except ValueError: raise InvalidTopicException(topic) r = rest.split('/') - if (len(r) == 1: + if (len(r) == 1): deviceId = 'mains', variableId = r[0] - elif (len(r) == 2: + elif (len(r) == 2): (deviceId, variableid) = r else: raise InvalidTopicException(topic)