diff --git a/plugins/eddb.py b/plugins/eddb.py index e1a0967e..17e72bf4 100644 --- a/plugins/eddb.py +++ b/plugins/eddb.py @@ -85,7 +85,7 @@ def journal_entry(cmdr, is_beta, system, station, entry, state): # We need pop == 0 to set the value so as to clear 'x' in systems with # no stations. pop = entry.get('Population') - if not pop is None: + if pop is not None: this.system_population = pop this.station = entry.get('StationName') or this.station diff --git a/plugins/edsm.py b/plugins/edsm.py index d184e57a..34b64b80 100644 --- a/plugins/edsm.py +++ b/plugins/edsm.py @@ -214,7 +214,8 @@ def journal_entry(cmdr, is_beta, system, station, entry, state): # We need pop == 0 to set the value so as to clear 'x' in systems with # no stations. pop = entry.get('Population') - if not pop is None: + if pop is not None: + this.system_population = pop this.station = entry.get('StationName') or this.station this.station_marketid = entry.get('MarketID') or this.station_marketid diff --git a/plugins/inara.py b/plugins/inara.py index 1927d7ba..dcfd5c70 100644 --- a/plugins/inara.py +++ b/plugins/inara.py @@ -230,7 +230,7 @@ def journal_entry(cmdr, is_beta, system, station, entry, state): # We need pop == 0 to set the value so as to clear 'x' in systems with # no stations. pop = entry.get('Population') - if not pop is None: + if pop is not None: this.system_population = pop this.station = entry.get('StationName') or this.station