Skip to content

Commit

Permalink
Fix pylint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmcorvidae committed Sep 29, 2024
1 parent bbd6d6a commit cbd3c11
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions meshtastic/mesh_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cbd3c11

Please sign in to comment.