tools: measure-fuzz: handle a None return correctly

Fixes #472

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2020-04-19 15:18:42 +10:00
parent 58cf854124
commit 3ec74cfc35

View file

@ -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: