sonaalPradeep / arxiv-telegram-bot

0 stars 1 forks source link

Failed response message #25

Closed sonaalPradeep closed 2 years ago

sonaalPradeep commented 2 years ago

If any parsing related error happens while fetching the latest papers, the application/bot crashes and a manual restart is needed. To avoid this, a try-catch block is added and a prompt with the paper name and paper URL is sent.

I triggered this exception by adding an extra (ex. `{title}**`), but hopefully this would cover any parsing related issue which might happen and can cause the bot to crash. We would ideally still need to see if there is an "universal" way to clean up our messages.

Closes #17

Screenshot_20220408-183158__01.jpg

reuben-roy commented 2 years ago

summary.replce("\n", "") should be summary.replace("\n", " ") This will be added in in a later commit