Apparently it was because it was running in debug, so the bot stopped. I tried with run and if the try catch works for me