File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ def __init__(
106
106
state = BusState .ACTIVE ,
107
107
bitrate = 500000 ,
108
108
* args ,
109
- ** kwargs
109
+ ** kwargs ,
110
110
):
111
111
"""A PCAN USB interface to CAN.
112
112
@@ -214,15 +214,13 @@ def __init__(
214
214
215
215
error , value = self .m_objPCANBasic .GetValue (PCAN_NONEBUS , PCAN_API_VERSION )
216
216
if error != PCAN_ERROR_OK :
217
- raise CanInitializationError (
218
- F"Failed to read pcan basic api version"
219
- )
217
+ raise CanInitializationError (f"Failed to read pcan basic api version" )
220
218
221
- apv = version .parse (value .decode (' ascii' ))
219
+ apv = version .parse (value .decode (" ascii" ))
222
220
if apv < MIN_PCAN_API_VERSION :
223
221
raise CanInitializationError (
224
- F "Minimum version of pcan api is { MIN_PCAN_API_VERSION } ."
225
- F " Installed version is { apv } . Consider upgrade of pcan basic package"
222
+ f "Minimum version of pcan api is { MIN_PCAN_API_VERSION } ."
223
+ f " Installed version is { apv } . Consider upgrade of pcan basic package"
226
224
)
227
225
228
226
if state is BusState .ACTIVE or state is BusState .PASSIVE :
You can’t perform that action at this time.
0 commit comments