1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 16:27:13 +03:00

removed assert False

This commit is contained in:
A_D 2020-09-17 09:15:12 +02:00
parent 26be93f92e
commit 4a7cddc48b
No known key found for this signature in database
GPG Key ID: 4BE9EB7DF45076C4

View File

@ -565,8 +565,11 @@ def should_send(entries: List[Mapping[str, Any]]) -> bool:
return False
else:
assert(False)
this.navbeaconscan = 0 # TODO: Unreachable code?
logger.error(
'Invalid state NavBeaconScan exists, but passed entries either '
"doesn't exist or doesn't have the expected content"
)
this.navbeaconscan = 0
for entry in entries:
if (entry['event'] == 'Cargo' and not this.newgame_docked) or entry['event'] == 'Docked':