From 725a99bcd58b86eef2aec27f86d8862d53651e5b Mon Sep 17 00:00:00 2001 From: beneficentboast Date: Mon, 13 Sep 2021 20:13:43 +0200 Subject: [PATCH] fix error for manipulated entries in DataUsage --- mvt/ios/modules/net_base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mvt/ios/modules/net_base.py b/mvt/ios/modules/net_base.py index ca7ea52..591b595 100644 --- a/mvt/ios/modules/net_base.py +++ b/mvt/ios/modules/net_base.py @@ -145,7 +145,9 @@ class NetBase(IOSExtraction): self.log.debug("Located at %s", binary_path) else: msg = f"Could not find the binary associated with the process with name {proc['proc_name']}" - if len(proc["proc_name"]) == 16: + if (proc["proc_name"] is None): + msg = f"Found process entry with empty 'proc_name' : {proc['live_proc_id']} at {proc['live_isodate']}" + elif len(proc["proc_name"]) == 16: msg = msg + " (However, the process name might have been truncated in the database)" self.log.warning(msg)