1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-17 01:22:19 +03:00

Merge pull request #31 from AnthorNet/master

FIX: Error: Can't connect to EDSM
This commit is contained in:
Jonathan Harris 2015-10-19 13:14:35 +01:00
commit d4759651bc

View File

@ -44,12 +44,12 @@ class EDSM:
if data == -1:
# System not present - but don't create it on the assumption that the caller will
result['img'] = EDSM._IMG_NEW
self.result['img'] = EDSM._IMG_NEW
elif data.get('coords'):
result['img'] = EDSM._IMG_KNOWN
self.result['img'] = EDSM._IMG_KNOWN
self.thread = threading.Thread(target = self.known, name = 'EDSM worker', args = (system_name, self.result))
else:
result['img'] = EDSM._IMG_UNKNOWN
self.result['img'] = EDSM._IMG_UNKNOWN
# Asynchronous version of the above
def start_lookup(self, system_name, known=0):