1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-17 17:42:20 +03:00

EDDN: TODO for dropping messages if we get a clear HTTP error

i.e. message not matching schema
This commit is contained in:
Athanasius 2021-09-26 15:17:37 +01:00
parent 413f9049f5
commit 9c611d73d5
No known key found for this signature in database
GPG Key ID: AE3E527847057C7D

View File

@ -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)