From: CMDR furrycat Date: Sun, 5 Nov 2017 23:03:14 +0000 (+0000) Subject: Report when system wasn't known to EDSM. X-Git-Url: http://git.furryclan.net/?a=commitdiff_plain;h=2c554f5f5bda88d0d64d85c7aa935d5f1a08b2c2;p=furrycat%2Fmissing_arrival_star.git Report when system wasn't known to EDSM. --- diff --git a/load.py b/load.py index 535be41..2e04f36 100644 --- a/load.py +++ b/load.py @@ -126,10 +126,14 @@ def edsm_query(system): this.edsm_data = None def edsm_callback(event): - if this.edsm_data is not None: + if this.edsm_data is None: + return + if len(this.edsm_data): star = this.edsm_data.get('primaryStar', None) if star is None: arrival_star_unknown() else: this.cache[this.edsm_data.get('name')] = star['type'] arrival_star_known(star['type']) + else: + arrival_star_known('Unknown system')