diff --git a/newswire.py b/newswire.py index fc07eca2..40a33c12 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 = \