diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2020-04-19 15:18:42 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2020-04-19 15:18:42 +1000 |
commit | 3ec74cfc353dac35f332a6aaf5d33668e2ca93d0 (patch) | |
tree | 6758a3cfd46c4ab8573dbeeda6c98080cc36377e /tools | |
parent | 58cf854124a269688b6e36e157a984046b0843ee (diff) |
tools: measure-fuzz: handle a None return correctly
Fixes #472
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/libinput-measure-fuzz.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |