summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--alot/db/__init__.py4
-rw-r--r--alot/db/message.py1
-rw-r--r--alot/db/utils.py1
3 files changed, 3 insertions, 3 deletions
diff --git a/alot/db/__init__.py b/alot/db/__init__.py
index 28c32c42..ca1f9b0b 100644
--- a/alot/db/__init__.py
+++ b/alot/db/__init__.py
@@ -63,7 +63,7 @@ class DBManager(object):
You are responsible to retry flushing at a later time if you want to
ensure that the cached changes are applied to the database.
- :exception: :exc:`errors.DatabaseROError` if db is opened in read-only mode
+ :exception: :exc:`errors.DatabaseROError` if db is opened read-only
:exception: :exc:`errors.DatabaseLockedError` if db is locked
"""
if self.ro:
@@ -129,7 +129,7 @@ class DBManager(object):
# end transaction and reinsert queue item on error
if db.end_atomic() != notmuch.STATUS.SUCCESS:
- raise errors.DatabaseError('fail-status from end_atomic')
+ raise errors.DatabaseError('end_atomic failed')
# call post-callback
if callable(afterwards):
diff --git a/alot/db/message.py b/alot/db/message.py
index d0a361c9..38c7a2ec 100644
--- a/alot/db/message.py
+++ b/alot/db/message.py
@@ -10,6 +10,7 @@ from alot.settings import settings
from utils import extract_headers, extract_body
from attachment import Attachment
+
class Message(object):
"""
a persistent notmuch message object.
diff --git a/alot/db/utils.py b/alot/db/utils.py
index 4e8ab904..9a0dc449 100644
--- a/alot/db/utils.py
+++ b/alot/db/utils.py
@@ -14,7 +14,6 @@ from alot.helper import string_sanitize
from alot.helper import string_decode
-
def extract_headers(mail, headers=None):
"""
returns subset of this messages headers as human-readable format: