Skip to content

Commit 1a1e10c

Browse files
committed
Remove lint.
1 parent 82326de commit 1a1e10c

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

openlcb/cdimemo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ def addChildren(self) -> None:
290290
if self.element.tail:
291291
self.tail = self.element.tail
292292

293-
for child_elem in list(self.element): # list() to avoid modification issues
293+
for child_elem in list(self.element): # list() fixes concurrency issue
294294
child_memo = CDIMemo(
295295
tag=child_elem.tag,
296296
element=child_elem,

openlcb/cdivar.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ def getSerializable(self):
181181
elif self.className == "string":
182182
return self.getString()
183183
assert self.className in ("blob", "eventid", "action")
184+
assert self.data is not None, "CDIVar data not initialized"
184185
return base64.b64encode(self.data)
185186

186187
def getDict(self, add_name=True):

0 commit comments

Comments
 (0)