summaryrefslogtreecommitdiff
path: root/alot/db.py
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2011-10-22 12:15:51 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2011-10-22 12:15:51 +0100
commitd6dc8e7e96292e55883d9b25fba7c8b83b585af2 (patch)
treef5456999400e336a4b473e93668c9ed1208aa492 /alot/db.py
parent4e6a8e97c94042fb2f74803351d32e2922f75643 (diff)
cleanup & pep8 fixes
Diffstat (limited to 'alot/db.py')
-rw-r--r--alot/db.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/alot/db.py b/alot/db.py
index d904c3be..c1c76657 100644
--- a/alot/db.py
+++ b/alot/db.py
@@ -207,11 +207,12 @@ class Thread(object):
try:
self._oldest_date = datetime.fromtimestamp(ts)
- except ValueError: # year is out of range
+ except ValueError: # year is out of range
self._oldest_date = None
try:
- self._newest_date = datetime.fromtimestamp(thread.get_newest_date())
- except ValueError: # year is out of range
+ timestamp = thread.get_newest_date()
+ self._newest_date = datetime.fromtimestamp(timestamp)
+ except ValueError: # year is out of range
self._newest_date = None
self._tags = set([t for t in thread.get_tags()])