From cbd3c119feeb82db3c6b6dcddab973ff6aaa58e0 Mon Sep 17 00:00:00 2001 From: Ian McEwen Date: Sat, 28 Sep 2024 20:15:08 -0700 Subject: [PATCH] Fix pylint errors --- meshtastic/mesh_interface.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meshtastic/mesh_interface.py b/meshtastic/mesh_interface.py index b0dca569..ba20e294 100644 --- a/meshtastic/mesh_interface.py +++ b/meshtastic/mesh_interface.py @@ -140,13 +140,13 @@ def close(self): def __enter__(self): return self - def __exit__(self, exc_type, exc_value, traceback): + def __exit__(self, exc_type, exc_value, trace): if exc_type is not None and exc_value is not None: logging.error( f"An exception of type {exc_type} with value {exc_value} has occurred" ) - if traceback is not None: - logging.error(f"Traceback: {traceback}") + if trace is not None: + logging.error(f"Traceback: {trace}") self.close() @staticmethod