From 2ff75b9da9386973290920d3215d98c523e27d61 Mon Sep 17 00:00:00 2001 From: Jonathan Harris Date: Tue, 5 Sep 2017 15:58:08 +0100 Subject: [PATCH] ShipID can be zero Ref 65970de --- plugins/edsm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/edsm.py b/plugins/edsm.py index f49cde72..7eae7a47 100644 --- a/plugins/edsm.py +++ b/plugins/edsm.py @@ -205,7 +205,7 @@ def journal_entry(cmdr, is_beta, system, station, entry, state): setranks(cmdr, state['Rank']) # Send ship info to EDSM on startup or change - if entry['event'] in ['StartUp', 'Loadout', 'LoadGame', 'SetUserShipName'] and cmdr and state['ShipID']: + if entry['event'] in ['StartUp', 'Loadout', 'LoadGame', 'SetUserShipName'] and cmdr and state['ShipID'] is not None: setshipid(cmdr, state['ShipID']) props = [] if state['ShipIdent'] is not None: