From 1141aa766f245ac70e59ad0c33bef51be93c3125 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Sun, 3 May 2015 13:16:26 +0200 Subject: [PATCH] nodes.py: catch ZeroDivisionError in statistics --- lib/nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nodes.py b/lib/nodes.py index 93d3835..4ff1fdc 100644 --- a/lib/nodes.py +++ b/lib/nodes.py @@ -59,7 +59,7 @@ def import_statistics(nodes, stats): node['statistics'][target] = f(reduce(dict.__getitem__, source, statistics)) - except (KeyError, TypeError): + except (KeyError, TypeError, ZeroDivisionError): pass macs = build_mac_table(nodes)