fix network interface speed calc bug

This commit is contained in:
Dominik Heidler 2015-10-16 17:03:00 +02:00
parent 2c51271143
commit c83ae6657c
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ def load_nodewatcher_xml(mac, xml):
netif_update = next(filter(lambda n: n["name"] == netif["name"], router_update["netifs"]))
netif_update["traffic"]["rx"] = netif["traffic"]["rx"]
netif_update["traffic"]["tx"] = netif["traffic"]["tx"]
except KeyError:
except (KeyError, StopIteration):
pass
# calculate RRD statistics (rrdcache?)