Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
prevent error in case committee protocol text is none
Browse files Browse the repository at this point in the history
  • Loading branch information
OriHoch committed Mar 13, 2016
1 parent f8a53ee commit 30db82c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auxiliary/tag_suggestions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def get_tags_in_text(text):
"""Returns a dictionary, the keys are tags found in text, and the values are the number of occurrences in text"""

result_dict = {}
words = text.split()
words = text.split() if text is not None else []

#look for tag in word
for tag in all_tags_names():
Expand Down

0 comments on commit 30db82c

Please sign in to comment.