diff --git a/can/io/canutils.py b/can/io/canutils.py index 6333503c3..5c08e9050 100644 --- a/can/io/canutils.py +++ b/can/io/canutils.py @@ -56,10 +56,13 @@ def __iter__(self): if data and data[0].lower() == "r": isRemoteFrame = True + if len(data) > 1: dlc = int(data[1:]) else: dlc = 0 + + dataBin = None else: isRemoteFrame = False