summaryrefslogtreecommitdiff
path: root/alot/ui.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2017-08-16 11:37:31 -0700
committerDylan Baker <dylan@pnwbakers.com>2017-08-19 12:52:26 -0700
commitdee41bb04906d6976b4f7c05c222f7d95182b3ea (patch)
tree2dbe16e47e3b8fee167d9375e83bd42585e78464 /alot/ui.py
parent188d79a0189b480656542a09be348fcbf506f33d (diff)
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.
Diffstat (limited to 'alot/ui.py')
-rw-r--r--alot/ui.py2
1 files changed, 1 insertions, 1 deletions
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']: