mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-11-18 02:52:42 +03:00
Shiplocker: while/else a failure logging
This commit is contained in:
1 file changed
+4
@@ -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')
|
||||
|
||||
|
||||
Reference in new issue
Block a user