mirror of
https://github.com/norohind/HabZone.git
synced 2025-04-18 23:47:37 +03:00
Fix error in log for unknown systems
This commit is contained in:
parent
8bced3b73a
commit
5e5a60f969
2
load.py
2
load.py
@ -174,7 +174,7 @@ def edsm_worker(systemName):
|
||||
try:
|
||||
r = this.edsm_session.get('https://www.edsm.net/api-system-v1/bodies?systemName=%s' % urllib2.quote(systemName), timeout=10)
|
||||
r.raise_for_status()
|
||||
this.edsm_data = r.json()
|
||||
this.edsm_data = r.json() or {} # Unknown system represented as empty list
|
||||
except:
|
||||
this.edsm_data = None
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user