Linting
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
parent
a4cf467e59
commit
e06d7b9540
|
@ -317,7 +317,7 @@ class Packet:
|
||||||
if not (0 <= tlv_type < len(TLV.tlv_classes())):
|
if not (0 <= tlv_type < len(TLV.tlv_classes())):
|
||||||
raise ValueError(f"TLV type is not supported: {tlv_type}")
|
raise ValueError(f"TLV type is not supported: {tlv_type}")
|
||||||
pkt.body = TLV.tlv_classes()[tlv_type]()
|
pkt.body = TLV.tlv_classes()[tlv_type]()
|
||||||
pkt.body.unmarshal(data[4:4+pkt.body_length])
|
pkt.body.unmarshal(data[4:4 + pkt.body_length])
|
||||||
|
|
||||||
pkt.validate_data()
|
pkt.validate_data()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue