Skip to content

Commit

Permalink
Fix the boot_id precision alignment code on py3
Browse files Browse the repository at this point in the history
Casting to float can raise a TypeError there.
  • Loading branch information
cvaroqui committed Oct 9, 2018
1 parent ebfb5ba commit 9715774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/node.py
Expand Up @@ -647,7 +647,7 @@ def matching(current, op, value):
if op in ("<", ">", ">=", "<="):
try:
current = float(current)
except ValueError:
except (ValueError, TypeError):
return False
if op == "=":
if current.lower() in ("true", "false"):
Expand Down

0 comments on commit 9715774

Please sign in to comment.