Commit 1b859fe9 authored by Nicolas Joyard's avatar Nicolas Joyard
Browse files

Mandate with no end date = present

parent 8cbc5535
......@@ -24,7 +24,7 @@ def chamber_icon(chamber):
def mandate_date(date, arg=None):
if date.year == 9999:
if date is None or date.year == 9999:
return 'present'
return naturalday(date, arg)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment