From dee41bb04906d6976b4f7c05c222f7d95182b3ea Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 16 Aug 2017 11:37:31 -0700 Subject: Replace Exception.message with str(Exception) In python3 Exception doesn't have a message attribute, the only way to get the string output is to call str() on the Exception. This also works in python 2.7, so go ahead and make that change. --- alot/ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alot/ui.py') diff --git a/alot/ui.py b/alot/ui.py index e7964ef4..da15cb37 100644 --- a/alot/ui.py +++ b/alot/ui.py @@ -174,7 +174,7 @@ class UI(object): try: self.apply_commandline(cmdline) except CommandParseError as e: - self.notify(e.message, priority='error') + self.notify(str(e), priority='error') # move keys are always passed elif cmdline in ['move up', 'move down', 'move page up', 'move page down']: -- cgit v1.2.3