diff --git a/canopen/objectdictionary/eds.py b/canopen/objectdictionary/eds.py index 40342d32..8dd73762 100644 --- a/canopen/objectdictionary/eds.py +++ b/canopen/objectdictionary/eds.py @@ -85,7 +85,8 @@ def import_eds(source, node_id): pass if eds.has_section("DeviceComissioning"): - od.bitrate = int(eds.get("DeviceComissioning", "Baudrate")) * 1000 + if val := eds.get("DeviceComissioning", "Baudrate", fallback=None): + od.bitrate = int(val) * 1000 if node_id is None: if val := eds.get("DeviceComissioning", "NodeID", fallback=None):