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.

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