nodes.py: catch ZeroDivisionError in statistics

detailed-rrds
Nils Schneider 2015-05-03 13:16:26 +02:00
parent 1835abac7f
commit 1141aa766f
1 changed files with 1 additions and 1 deletions

View File

@ -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)