nodes.py: catch ZeroDivisionError in statistics
This commit is contained in:
parent
1835abac7f
commit
1141aa766f
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue