summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2016-12-19 17:03:27 -0800
committerDylan Baker <dylan@pnwbakers.com>2016-12-21 16:29:01 -0800
commitee45102ad8a386ed9c94e20db4f35d9276b3329e (patch)
tree786fd5f99483c055ea3f97280e0ab3ca141d4780
parenta9aa5d119347dfd065f1c16188d9db8c427afd20 (diff)
db/thread: define Thread._authors in constructor
This is needed by unittest that mock Thread.refresh.
-rw-r--r--alot/db/thread.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/alot/db/thread.py b/alot/db/thread.py
index cfe9fa5d..39abddc1 100644
--- a/alot/db/thread.py
+++ b/alot/db/thread.py
@@ -24,6 +24,7 @@ class Thread(object):
:type thread: :class:`notmuch.database.Thread`
"""
self._dbman = dbman
+ self._authors = None
self._id = thread.get_thread_id()
self.refresh(thread)