Commit 3ec74cfc authored by Peter Hutterer's avatar Peter Hutterer

tools: measure-fuzz: handle a None return correctly

Fixes #472
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <>
parent 58cf8541
...@@ -284,7 +284,7 @@ def test_hwdb_entry(device, fuzz): ...@@ -284,7 +284,7 @@ def test_hwdb_entry(device, fuzz):
d = Device(device.path) d = Device(device.path)
f = d.check_axes() f = d.check_axes()
if fuzz == f[0] and fuzz == f[1]: if f is not None and fuzz == f[0] and fuzz == f[1]:
print_green('Success') print_green('Success')
return True return True
else: else:
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