fix some linter warnings

This commit is contained in:
Gilles Boccon-Gibod
2024-10-21 23:58:50 -07:00
parent f169ceaebb
commit a00abd65b3
8 changed files with 14 additions and 0 deletions

View File

@@ -134,6 +134,8 @@ class Frame:
opcode_offset = 3
elif subunit_id == 6:
raise core.InvalidPacketError("reserved subunit ID")
else:
raise core.InvalidPacketError("invalid subunit ID")
opcode = Frame.OperationCode(data[opcode_offset])
operands = data[opcode_offset + 1 :]