Don't allow score keeping for empty strings
This commit is contained in:
parent
e906713052
commit
98156bddde
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ def process_message(data):
|
||||||
return
|
return
|
||||||
|
|
||||||
score, name = calculate_score_and_find_operators(text)
|
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)
|
LOGGER.info('Adding %s to %s', score, name)
|
||||||
if score:
|
if score:
|
||||||
score = update_item(name, score)
|
score = update_item(name, score)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue