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 <peter.hutterer@who-t.net>
parent 58cf8541
......@@ -284,7 +284,7 @@ def test_hwdb_entry(device, fuzz):
d = Device(device.path)
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')
return True
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