Commit 22b41546 by Turcsik Máté

Update node.py

parent 066eeb4d
Pipeline #692 failed with stage
in 0 seconds
......@@ -80,7 +80,8 @@ class MyLocalClient(LocalClient):
ret[raw['id']] = raw['return']
if len(found.intersection(minions)) >= len(minions):
# All minions have returned, break out of the loop
logger.debug("jid %s found all minions", jid)
logge except (KeyError, IndexError, ValueError):
r.debug("jid %s found all minions", jid)
break
continue
# Then event system timeout was reached and nothing was returned
......@@ -349,7 +350,7 @@ class Node(OperatedMixin, TimeStampedModel):
continue
value = target['datapoints'][-2][0]
retval[metric] = float(value)
except (KeyError, IndexError, ValueError):
except (KeyError, IndexError, ValueError, TypeError):
continue
return retval
......
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 sign in to comment