From 282cf1ce03842d58b396a2e2320a9ecdc33a45ae Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Sat, 7 Oct 2023 10:29:57 -0400 Subject: [PATCH] klippy_connection: fix linter errors Signed-off-by: Eric Callahan --- moonraker/klippy_connection.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/moonraker/klippy_connection.py b/moonraker/klippy_connection.py index ec33093..5ec85e3 100644 --- a/moonraker/klippy_connection.py +++ b/moonraker/klippy_connection.py @@ -328,13 +328,13 @@ class KlippyConnection: async def _request_initial_subscriptions(self) -> None: try: await self.klippy_apis.subscribe_objects({'webhooks': None}) - except ServerError as e: + except ServerError: logging.exception("Unable to subscribe to webhooks object") else: logging.info("Webhooks Subscribed") try: await self.klippy_apis.subscribe_gcode_output() - except ServerError as e: + except ServerError: logging.exception( "Unable to register gcode output subscription" ) @@ -409,8 +409,7 @@ class KlippyConnection: async def _verify_klippy_requirements(self) -> None: result = await self.klippy_apis.get_object_list(default=None) if result is None: - logging.info( - f"Unable to retrieve Klipper Object List") + logging.info("Unable to retrieve Klipper Object List") return req_objs = set(["virtual_sdcard", "display_status", "pause_resume"]) self._missing_reqs = req_objs - set(result) @@ -425,7 +424,7 @@ class KlippyConnection: query_res = await self.klippy_apis.query_objects( {'configfile': None}, default=None) if query_res is None: - logging.info(f"Unable to set SD Card path") + logging.info("Unable to set SD Card path") else: config = query_res.get('configfile', {}).get('config', {}) vsd_config = config.get('virtual_sdcard', {})