Skip to content

Commit

Permalink
fix pylint error
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Lauser <andreas.lauser@mbition.io>
Signed-off-by: Alexander Walz <alexander.walz@mbition.io>
  • Loading branch information
Andreas Lauser committed Jan 17, 2024
1 parent 02932e9 commit 330c717
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dbcfeederlib/canreader.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ def _process_can_message(self, frame_id: int, data: Any):
try:
decode = message_def.decode(bytes(data), allow_truncated=True, decode_containers=True)
except Exception as e:
log.warning("Error processing CAN message with frame ID: %#x", frame_id, exc_info=True)
log.warning("Error: ", e)
log.warning(f"Error processing CAN message with frame ID 0x{frame_id: x}: {e}", exc_info=True)

if log.isEnabledFor(logging.DEBUG):
log.debug("Decoded message: %s", str(decode))
Expand Down

0 comments on commit 330c717

Please sign in to comment.