mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-16 09:10:35 +03:00
Change the multi-line conditional to using () not \\n
This commit is contained in:
parent
ca4214fff8
commit
e908cce242
@ -142,10 +142,10 @@ class EDDN:
|
||||
if r.status_code != requests.codes.ok:
|
||||
|
||||
# Check if EDDN is still objecting to an empty commodities list
|
||||
if r.status_code == 400 \
|
||||
and msg['$schemaRef'] == 'https://eddn.edcd.io/schemas/commodity/3' \
|
||||
and msg['message']['commodities'] == [] \
|
||||
and r.text == "FAIL: [<ValidationError: '[] is too short'>]":
|
||||
if (r.status_code == 400
|
||||
and msg['$schemaRef'] == 'https://eddn.edcd.io/schemas/commodity/3'
|
||||
and msg['message']['commodities'] == []
|
||||
and r.text == "FAIL: [<ValidationError: '[] is too short'>]"):
|
||||
logger.trace("EDDN is still objecting to empty commodities data")
|
||||
return # We want to silence warnings otherwise
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user