Don't allow score keeping for empty strings

This commit is contained in:
Eryn Wells 2016-05-21 10:37:44 -04:00
parent e906713052
commit 98156bddde

View file

@ -38,7 +38,7 @@ def process_message(data):
return
score, name = calculate_score_and_find_operators(text)
if score is not None:
if score is not None and name:
LOGGER.info('Adding %s to %s', score, name)
if score:
score = update_item(name, score)