summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templatetags
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-07-11 20:15:07 +0200
committerAurélien Bompard <aurelien@bompard.org>2013-07-11 20:15:07 +0200
commitce57f4cbe44d2594ff11aba8501a1d8f2727fd70 (patch)
tree6e81f66caa5dc77644ba6c1b6f5d1c882e33be50 /hyperkitty/templatetags
parenta3a4ce32f0596ff0bf48c7cc04292389e0d9627d (diff)
downloadhyperkitty-ce57f4cbe44d2594ff11aba8501a1d8f2727fd70.tar.gz
hyperkitty-ce57f4cbe44d2594ff11aba8501a1d8f2727fd70.tar.xz
hyperkitty-ce57f4cbe44d2594ff11aba8501a1d8f2727fd70.zip
Handle leftover votes & favorites
Diffstat (limited to 'hyperkitty/templatetags')
-rw-r--r--hyperkitty/templatetags/hk_generic.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/hyperkitty/templatetags/hk_generic.py b/hyperkitty/templatetags/hk_generic.py
index 25b240c..4e31a09 100644
--- a/hyperkitty/templatetags/hk_generic.py
+++ b/hyperkitty/templatetags/hk_generic.py
@@ -137,6 +137,8 @@ def get_date(email_or_thread):
date_obj = email_or_thread.date.replace(tzinfo=tz)
elif hasattr(email_or_thread, 'date_active'):
date_obj = email_or_thread.date_active.replace(tzinfo=utc)
+ else:
+ raise ValueError(email_or_thread)
return date_obj