From b7d65e6123de58ae9ab80eb44b3b8eb61207bf7e Mon Sep 17 00:00:00 2001 From: U039b Date: Sun, 25 Jul 2021 11:03:28 +0200 Subject: [PATCH] Fix #108 --- mvt/ios/modules/fs/net_base.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mvt/ios/modules/fs/net_base.py b/mvt/ios/modules/fs/net_base.py index b5cd550..01c385c 100644 --- a/mvt/ios/modules/fs/net_base.py +++ b/mvt/ios/modules/fs/net_base.py @@ -167,6 +167,10 @@ class NetBase(IOSExtraction): results_by_proc = {proc["proc_id"]: proc for proc in self.results if proc["proc_id"]} all_proc_id = sorted(results_by_proc.keys()) + # Fix issue #108 + if not all_proc_id: + return + missing_procs, last_proc_id = {}, None for proc_id in range(min(all_proc_id), max(all_proc_id)): if proc_id not in all_proc_id: