summaryrefslogtreecommitdiff
path: root/alot/commands/envelope.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/commands/envelope.py')
-rw-r--r--alot/commands/envelope.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/alot/commands/envelope.py b/alot/commands/envelope.py
index 54601422..535ce06c 100644
--- a/alot/commands/envelope.py
+++ b/alot/commands/envelope.py
@@ -1,8 +1,6 @@
# Copyright (C) 2011-2012 Patrick Totzke <patricktotzke@gmail.com>
# This file is released under the GNU GPL, version 3 or a later revision.
# For further details see the COPYING file
-from __future__ import absolute_import
-
import argparse
import datetime
import email
@@ -145,8 +143,8 @@ class SaveCommand(Command):
ui.apply_command(globals.FlushCommand())
ui.apply_command(commands.globals.BufferCloseCommand())
except DatabaseError as e:
- logging.error(e)
- ui.notify('could not index message:\n%s' % e,
+ logging.error(str(e))
+ ui.notify('could not index message:\n%s' % str(e),
priority='error',
block=True)
else:
@@ -643,13 +641,13 @@ class TagCommand(Command):
def __init__(self, tags=u'', action='add', **kwargs):
"""
:param tags: comma separated list of tagstrings to set
- :type tags: unicode
+ :type tags: str
:param action: adds tags if 'add', removes them if 'remove', adds tags
and removes all other if 'set' or toggle individually if
'toggle'
:type action: str
"""
- assert isinstance(tags, unicode), 'tags should be a unicode string'
+ assert isinstance(tags, str), 'tags should be a unicode string'
self.tagsstring = tags
self.action = action
Command.__init__(self, **kwargs)