mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-06 10:23:06 +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:
|
if not len(self.replaylog) % self.REPLAYFLUSH:
|
||||||
self.flush()
|
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:
|
except requests.exceptions.HTTPError as e:
|
||||||
status['text'] = self.http_error_to_log(e)
|
status['text'] = self.http_error_to_log(e)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user