Adding try/except blocks to notifications