Skip to content

Commit b4907ad

Browse files
committed
Set default value of storage_location to None
1 parent 3b0b081 commit b4907ad

File tree

1 file changed

+2
-2
lines changed
  • canopen/objectdictionary

1 file changed

+2
-2
lines changed

canopen/objectdictionary/eds.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def import_eds(source, node_id):
6262
try:
6363
storage_location = eds.get(section, "StorageLocation")
6464
except NoOptionError:
65-
storage_location = "Unknown"
65+
storage_location = None
6666

6767
if object_type in (VAR, DOMAIN):
6868
var = build_variable(eds, section, node_id, index)
@@ -161,7 +161,7 @@ def build_variable(eds, section, node_id, index, subindex=0):
161161
try:
162162
var.storage_location = eds.get(section, "StorageLocation")
163163
except NoOptionError:
164-
var.storage_location = "Unknown"
164+
var.storage_location = None
165165
var.data_type = int(eds.get(section, "DataType"), 0)
166166
var.access_type = eds.get(section, "AccessType").lower()
167167
if var.data_type > 0x1B:

0 commit comments

Comments
 (0)