mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-10-25 01:06:05 +03:00
Tidy
This commit is contained in:
1 parent
e9e90dd512
commit
d77f16ec16
1 file changed
+2
-2
@@ -47,7 +47,7 @@ class EDSM:
|
||||
r.raise_for_status()
|
||||
data = r.json()
|
||||
|
||||
if data == -1 or (isinstance(data, list) and len(data) == 0):
|
||||
if data == -1 or not data:
|
||||
# System not present - but don't create it on the assumption that the caller will
|
||||
self.result['img'] = EDSM._IMG_NEW
|
||||
self.result['uncharted'] = True
|
||||
@@ -82,7 +82,7 @@ class EDSM:
|
||||
r.raise_for_status()
|
||||
data = r.json()
|
||||
|
||||
if data == -1 or (isinstance(data, list) and len(data) == 0):
|
||||
if data == -1 or not data:
|
||||
# System not present - create it
|
||||
result['img'] = EDSM._IMG_NEW
|
||||
result['uncharted'] = True
|
||||
|
||||
Reference in new issue
Block a user