return empty array instead of None when no hashtags found

feature-unify_handlers
Tomáš Mládek 2019-05-15 11:43:05 +02:00
parent 6a660206c8
commit ddd1ee3616
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ class DelojzaBot:
for i, hashtag in enumerate(hashtags):
if "PRAS" in hashtag:
hashtags[i] = "PRAS"
return hashtags
return hashtags
def get_hashtags(self, message):
hashtags = self.extract_hashtags(message)