Skip to content

Commit 558b297

Browse files
committed
Add str conversion to config val
1 parent e7a2b04 commit 558b297

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

can/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def _create_bus_config(config: Dict[str, Any]) -> typechecking.BusConfig:
232232
"btr1",
233233
):
234234
if key in config:
235-
timing_conf[key] = int(config[key], base=0)
235+
timing_conf[key] = int(str(config[key]), base=0)
236236
del config[key]
237237
if timing_conf:
238238
timing_conf["bitrate"] = config["bitrate"]

0 commit comments

Comments
 (0)