mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-18 18:07:37 +03:00
fix flake8 errors
This commit is contained in:
parent
df9f0bfc7c
commit
1b37991016
@ -256,6 +256,8 @@ class EDDN:
|
||||
headers = {'Content-Encoding': 'gzip'}
|
||||
|
||||
r = self.session.post(self.eddn_url, data=encoded, timeout=self.TIMEOUT, headers=headers)
|
||||
logger.trace_if('plugin.eddn', f"EDDN response {r.status_code} to data: {json.dumps(to_send)}")
|
||||
logger.trace_if('plugin.eddn', f"EDDN response {r.text}")
|
||||
if r.status_code != requests.codes.ok:
|
||||
|
||||
# Check if EDDN is still objecting to an empty commodities list
|
||||
@ -1334,13 +1336,12 @@ class EDDN:
|
||||
# "TimeRemaining": 718.508789
|
||||
# }
|
||||
#######################################################################
|
||||
#logger.trace_if("plugin.eddn", entry)
|
||||
# Elisions
|
||||
entry = filter_localised(entry)
|
||||
if "USSType" in entry and entry["USSType"] == "$USS_Type_MissionTarget;":
|
||||
logger.warning("USSType is $USS_Type_MissionTarget;, dropping")
|
||||
return 'Dropping $USS_Type_MissionTarget;'
|
||||
# Can check SystemAddress here, but we'll remove it from this signal list, to be added to the outer batched message
|
||||
# Can check SystemAddress here, but we'll remove it from this signal list, to be added to the batch
|
||||
if this.systemaddress is None or this.systemaddress != entry['SystemAddress']:
|
||||
logger.warning("SystemAddress isn't current location! Can't add augmentations!")
|
||||
return 'Wrong System! Missed jump ?'
|
||||
|
Loading…
x
Reference in New Issue
Block a user