diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2018-12-20 11:09:59 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2019-01-07 10:27:07 +1000 |
commit | a2f411bc4b91b21eb608ffe1c02b0288756f2a8d (patch) | |
tree | 07505c59b3831bf4961e666c745ba3b419b90357 | |
parent | 62a04b5d6d5836ea8a94830a7322b2223c746d76 (diff) |
tools: measure-fuzz: fix exception printing
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/x86_64-linux-gnu/libinput/libinput-measure-fuzz", line 464, in <module>
main(sys.argv)
File "/usr/lib/x86_64-linux-gnu/libinput/libinput-measure-fuzz", line 458, in main
print('Error: {}'.format(e.message))
AttributeError: 'InvalidConfigurationError' object has no attribute 'message'
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>:
(cherry picked from commit a904738730297f202d8c9d5fcfa092b0c41f7ee5)
-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 23386fe2..5e12b1de 100755 --- a/tools/libinput-measure-fuzz.py +++ b/tools/libinput-measure-fuzz.py @@ -455,7 +455,7 @@ def main(args): except PermissionError as e: print('Permission denied, please re-run as root') except InvalidConfigurationError as e: - print('Error: {}'.format(e.message)) + print('Error: {}'.format(e)) except KeyboardInterrupt as e: print('Exited on user request') |