Yes, it should be better to have alert with such actions for key error
@tomholub does such error handling looks good for you?
Originally posted by @sosnovsky in #1311 (comment)
We have nearly zero users using SMTP/IMAP. In the future we may have more, but it will never be nearly enough to to amount of users that we have for Oauth2 due to the difference in convenience. I'll file the suggestion as a separate issue for sometime later in the future.