Unresolved issue with tweepy API
As [https://github.com/tweepy/tweepy/issues/1233] states, tweet.favorited is always false and it enters the if loop even if the tweet has been liked before, by the authenticated user. Hence a try catch block is used inside if not tweet.favorited to catch such an error.