From b184016dac72ff65069c8137fbb7d4fce1972dfa Mon Sep 17 00:00:00 2001 From: NotoriousRebel Date: Fri, 15 Feb 2019 22:49:58 -0500 Subject: [PATCH] Fixed small bug. --- discovery/twittersearch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discovery/twittersearch.py b/discovery/twittersearch.py index 86b8abb7..1ce85c67 100644 --- a/discovery/twittersearch.py +++ b/discovery/twittersearch.py @@ -41,10 +41,10 @@ class search_twitter: if ' ' in handle.strip(): handle = handle.split(' ')[0] # strip off period at the end if exists - elif handle[len(handle) - 1] == '.': + if handle[len(handle) - 1] == '.': handle = handle[:len(handle) - 1] # strip periods if contains three of them - elif '...' in handle.strip(): + if '...' in handle.strip(): handle = handle[:handle.index('.')] handles.add(handle) return handles