Skip to content

Commit

Permalink
fix pylint error
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Lauser <[email protected]>
Signed-off-by: Alexander Walz <[email protected]>
  • Loading branch information
Andreas Lauser authored and erikbosch committed Jan 18, 2024
1 parent dc441fb commit e639913
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 e639913

Please sign in to comment.