Skip to content

Commit

Permalink
fixed AttributeError: 'float' object has no attribute 'lower'
Browse files Browse the repository at this point in the history
  • Loading branch information
behrouz committed Feb 29, 2020
1 parent e70274f commit 5b2eb13
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions twc.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def remove_emoji(tweet):


def clean_tweet(tweet):
tweet = str(tweet)
tweet = tweet.lower()
tweet = tp.clean(tweet)
tweet = remove_emoji(tweet)
Expand Down

0 comments on commit 5b2eb13

Please sign in to comment.