From ddd1ee3616ee09ab246d608cfdf6211c3f0a8323 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Wed, 15 May 2019 11:43:05 +0200 Subject: [PATCH] return empty array instead of None when no hashtags found --- delojza.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/delojza.py b/delojza.py index 6eb0aff..fc8d5a2 100755 --- a/delojza.py +++ b/delojza.py @@ -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)