From 4a7cddc48bf9dba692f5c841aedde7283db42b5a Mon Sep 17 00:00:00 2001 From: A_D <aunderscored@gmail.com> Date: Thu, 17 Sep 2020 09:15:12 +0200 Subject: [PATCH] removed assert False --- plugins/edsm.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/edsm.py b/plugins/edsm.py index 691ad27a..4a62b5d3 100644 --- a/plugins/edsm.py +++ b/plugins/edsm.py @@ -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':