1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-21 11:27:38 +03:00

Shiplocker: while/else a failure logging

This commit is contained in:
Athanasius 2021-08-07 14:45:46 +01:00
parent dc953b49a6
commit cc6b52a9ed
No known key found for this signature in database
GPG Key ID: AE3E527847057C7D

@ -896,6 +896,10 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
sleep(shiplocker_fail_sleep)
pass
else:
logger.warning(f'Failed to load & decode shiplocker after {shiplocker_max_attempts} tries. '
'Giving up.')
if not all(t in entry for t in ('Components', 'Consumables', 'Data', 'Items')):
logger.warning('ShipLocker event is missing at least one category')