revert: use slice because the type of enum values are bytes

This commit is contained in:
Youngjoon Lee 2024-07-11 17:23:16 +09:00
parent 5b41c3d3cc
commit 693cf63b73
No known key found for this signature in database
GPG Key ID: B4253AFBA618BF4D

View File

@ -116,4 +116,4 @@ class Nomssip:
"""
if len(data) < 1:
raise ValueError("Invalid message format")
return (Nomssip.PacketType(data[0]), data[1:])
return (Nomssip.PacketType(data[:1]), data[1:])