mirror of
https://github.com/discourse/discourse.git
synced 2026-08-03 09:53:24 -05:00
When checking how many times an email job has been retried, we need to check that the `retry_count` attribute has been set. In a related error, the `UserEmail` retry wait handler assumed that the triggering exception would always have a `wrapped` attribute, which isn't necessarily the case if the exception was raised outside of the job execution code.