From e908cce242cc9a8e617e1ae0bdcae2aa39232e68 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Mon, 28 Sep 2020 12:41:44 +0100 Subject: [PATCH] Change the multi-line conditional to using () not \\n --- plugins/eddn.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/eddn.py b/plugins/eddn.py index e7e576ad..238a5e18 100644 --- a/plugins/eddn.py +++ b/plugins/eddn.py @@ -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: []": + if (r.status_code == 400 + and msg['$schemaRef'] == 'https://eddn.edcd.io/schemas/commodity/3' + and msg['message']['commodities'] == [] + and r.text == "FAIL: []"): logger.trace("EDDN is still objecting to empty commodities data") return # We want to silence warnings otherwise