This handles exceptions occurring during get_public_tweets iterations and displays required information.