Commit c1c7d1e3 authored by Sergios Aftsidis's avatar Sergios Aftsidis

Add cases for exception prevention

parent 97881c08
......@@ -31,7 +31,7 @@ def graph_ifce(ifce):
rrdtool.update(
str(rrdpath),
str('--template'), str('ds0:ds1'),
str("%s"%int(time.time())+":" +values[0]+":"+values[1]))
str("%s"%int(time.time())+":" +(values[0] or '')+":"+(values[1] or '')))
def graphall():
for ifce in MONITORED_IFCES:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment