From a169fb5a18c523cd4bae03b10201f21f7ed32025 Mon Sep 17 00:00:00 2001 From: David Sangrey Date: Fri, 17 Nov 2023 10:54:00 -0500 Subject: [PATCH] [Minor] Suppress Errant MyPy Error --- plugins/eddn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/eddn.py b/plugins/eddn.py index a1f90610d..0ab06a839 100644 --- a/plugins/eddn.py +++ b/plugins/eddn.py @@ -428,13 +428,13 @@ def send_message(self, msg: str) -> bool: r.raise_for_status() except requests.exceptions.HTTPError as e: - if unknown_schema := self.UNKNOWN_SCHEMA_RE.match(e.response.text): + if unknown_schema := self.UNKNOWN_SCHEMA_RE.match(e.response.text): # type: ignore logger.debug(f"EDDN doesn't (yet?) know about schema: {unknown_schema['schema_name']}" f"/{unknown_schema['schema_version']}") # This dropping is to cater for the time period when EDDN doesn't *yet* support a new schema. return True - if e.response.status_code == http.HTTPStatus.BAD_REQUEST: + if e.response.status_code == http.HTTPStatus.BAD_REQUEST: # type: ignore # EDDN straight up says no, so drop the message logger.debug(f"EDDN responded '400 Bad Request' to the message, dropping:\n{msg!r}") return True