catch potential exception in reporters

This commit is contained in:
Jakob Ketterl 2024-01-30 23:33:20 +01:00
parent ea1b0cecc2
commit 27d44aeca9
1 changed files with 4 additions and 1 deletions

View File

@ -68,4 +68,7 @@ class ReportingEngine(object):
def spot(self, spot):
for r in self.reporters:
if not isinstance(r, FilteredReporter) or spot["mode"] in r.getSupportedModes():
r.spot(spot)
try:
r.spot(spot)
except Exception:
logger.exception("error sending spot to reporter")