Sentry was reporting occasional 500 errors from production.
Checklist
[x] I have read and followed the CONTRIBUTING guide.
[x] I confirm that I have the authority necessary to make this contribution on behalf of its copyright owner and agree
to license it to the TeSS codebase under the
BSD license.
Summary of changes
Motivation and context
Sentry was reporting occasional 500 errors from production.
Checklist