nodes.py: catch ZeroDivisionError in statistics

This commit is contained in:
Nils Schneider 2015-05-03 13:16:26 +02:00
parent 1835abac7f
commit 1141aa766f

View file

@ -59,7 +59,7 @@ def import_statistics(nodes, stats):
node['statistics'][target] = f(reduce(dict.__getitem__, node['statistics'][target] = f(reduce(dict.__getitem__,
source, source,
statistics)) statistics))
except (KeyError, TypeError): except (KeyError, TypeError, ZeroDivisionError):
pass pass
macs = build_mac_table(nodes) macs = build_mac_table(nodes)