Hi Eliza sorry for the late answer somehow I missed it.

That code block is trying to fetch the tweet with the ID. If some problem occurs you will see the log “inside the exception — no:2”.

Common reason of this could be, user may deleted the tweet, means tweet doesn’t exist anymore. You can just skip that ID and write the log to warn yourself about the problematic ID for further usage. Thanks.

Full-time developer, and lifelong learner. Loves to learn and experience. Motto: Stay Hungry, Stay Foolish | @anilemrah_

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store