nodes.py: catch ZeroDivisionError in statistics
parent
1835abac7f
commit
1141aa766f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue