diff --git a/newswire.py b/newswire.py index fc07eca28..40a33c127 100644 --- a/newswire.py +++ b/newswire.py @@ -55,6 +55,8 @@ def rss2Footer() -> str: def getNewswireTags(text: str) -> []: """Returns a list of hashtags found in the given text """ + if '#' not in text: + return [] if ' ' not in text: return [] textSimplified = \