mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-06 02:13:41 +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:
|
if r.status_code != requests.codes.ok:
|
||||||
|
|
||||||
# Check if EDDN is still objecting to an empty commodities list
|
# Check if EDDN is still objecting to an empty commodities list
|
||||||
if r.status_code == 400 \
|
if (r.status_code == 400
|
||||||
and msg['$schemaRef'] == 'https://eddn.edcd.io/schemas/commodity/3' \
|
and msg['$schemaRef'] == 'https://eddn.edcd.io/schemas/commodity/3'
|
||||||
and msg['message']['commodities'] == [] \
|
and msg['message']['commodities'] == []
|
||||||
and r.text == "FAIL: [<ValidationError: '[] is too short'>]":
|
and r.text == "FAIL: [<ValidationError: '[] is too short'>]"):
|
||||||
logger.trace("EDDN is still objecting to empty commodities data")
|
logger.trace("EDDN is still objecting to empty commodities data")
|
||||||
return # We want to silence warnings otherwise
|
return # We want to silence warnings otherwise
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user