Skip to content

Commit 2b3e6fa

Browse files
authored
Merge pull request #2220 from laws-africa/fix-no-latest-commencement-date
provide for commencements without a date
2 parents 374d9bc + 7654d44 commit 2b3e6fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

indigo_api/exporters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def get_notices(self, document, short=False):
305305
notices.append(_('This %(friendly_type)s has not yet come into force in full. '
306306
'See the commencements table for more information.') % {'friendly_type': work.friendly_type()})
307307
# no notice for a future commencement if the work also hasn't commenced in full
308-
elif latest_commencement_date > datetime.date.today():
308+
elif latest_commencement_date and latest_commencement_date > datetime.date.today():
309309
notices.append(_('This %(friendly_type)s will come into force on %(date)s.') % {'friendly_type': work.friendly_type(), 'date': latest_commencement_date})
310310

311311
# not the latest expression / amendments outstanding

0 commit comments

Comments
 (0)