Skip to content

Commit af92f6b

Browse files
committed
feat: require int
1 parent 71e9df9 commit af92f6b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/zeroconf/_protocol/outgoing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def write_name(self, name: str_) -> None:
277277
start_size = self.size
278278
for count in range(len(labels)):
279279
label = name if count == 0 else '.'.join(labels[count:])
280-
index = self.names.get(label)
280+
index = self.names.get(label, 0)
281281
if index:
282282
# If part of the name already exists in the packet,
283283
# create a pointer to it

0 commit comments

Comments
 (0)