tools: measure-fuzz: fix exception printing
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 20 Dec 2018 01:09:59 +0000 (11:09 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 2 Jan 2019 04:59:48 +0000 (04:59 +0000)
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>:
tools/libinput-measure-fuzz.py

index 23386fe..5e12b1d 100755 (executable)
@@ -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')