git://git.furryclan.net
/
furrycat
/
missing_arrival_star.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
667b37a
)
Report when system wasn't known to EDSM.
author
CMDR furrycat
<elite@furrycat.net>
Sun, 5 Nov 2017 23:03:14 +0000
(23:03 +0000)
committer
CMDR furrycat
<elite@furrycat.net>
Sun, 5 Nov 2017 23:03:14 +0000
(23:03 +0000)
load.py
patch
|
blob
|
history
diff --git
a/load.py
b/load.py
index
535be41
..
2e04f36
100644
(file)
--- 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')