File tree 1 file changed +9
-3
lines changed 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -44,11 +44,17 @@ def __init__(
44
44
self .rx_queue = collections .deque (maxlen = rx_queue_size )
45
45
46
46
if bitrate is None and Timing0 is None and Timing1 is None :
47
- raise ValueError ("Either bitrate or both Timing0 and Timing1 must be specified" )
47
+ raise ValueError (
48
+ "Either bitrate or both Timing0 and Timing1 must be specified"
49
+ )
48
50
if bitrate is None and (Timing0 is None or Timing1 is None ):
49
- raise ValueError ("If bitrate is not set then both Timing0 and Timing1 must be set" )
51
+ raise ValueError (
52
+ "If bitrate is not set then both Timing0 and Timing1 must be set"
53
+ )
50
54
if bitrate is not None and (Timing0 is not None or Timing1 is not None ):
51
- raise ValueError ("If bitrate is set then Timing0 and Timing1 must not be set" )
55
+ raise ValueError (
56
+ "If bitrate is set then Timing0 and Timing1 must not be set"
57
+ )
52
58
53
59
self .channel_info = "CANalyst-II: device {}, channels {}" .format (
54
60
device , self .channels
You can’t perform that action at this time.
0 commit comments