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:
parent
413f9049f5
commit
9c611d73d5
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user