raise error on non nas message

This commit is contained in:
Cooper Quintin
2024-12-17 11:26:39 -08:00
committed by Will Greenberg
parent 4009e3d1ed
commit e47d4dacc4
2 changed files with 4 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ def parse_nas_message(buffer, uplink=None):
parsed = NASLTE.parse_NASLTE_MT(bin)
if parsed[0] is None: # Not a NAS Packet
raise parsed[1]
raise TypeError("Not a nas packet")
return parsed[0]
def heur_ue_imsi_sent(msg):