From 9c611d73d5d1a928092eddd9c1aa2a871b7e5441 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Sun, 26 Sep 2021 15:17:37 +0100 Subject: [PATCH] EDDN: TODO for dropping messages if we get a clear HTTP error i.e. message not matching schema --- plugins/eddn.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/eddn.py b/plugins/eddn.py index f4d72673..64ea374d 100644 --- a/plugins/eddn.py +++ b/plugins/eddn.py @@ -266,6 +266,9 @@ Msg:\n{msg}''' if not len(self.replaylog) % self.REPLAYFLUSH: self.flush() + # TODO: Something here needs to handle, e.g. HTTP 400, and take the message + # in question out of replaylog, else we'll keep retrying a bad message + # forever. except requests.exceptions.HTTPError as e: status['text'] = self.http_error_to_log(e)