From 3ec74cfc353dac35f332a6aaf5d33668e2ca93d0 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Sun, 19 Apr 2020 15:18:42 +1000 Subject: [PATCH] tools: measure-fuzz: handle a None return correctly Fixes #472 Signed-off-by: Peter Hutterer --- tools/libinput-measure-fuzz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libinput-measure-fuzz.py b/tools/libinput-measure-fuzz.py index c01b8a49..09983d99 100755 --- a/tools/libinput-measure-fuzz.py +++ b/tools/libinput-measure-fuzz.py @@ -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: