Skip to content

Commit

Permalink
Expand docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
hancush committed Jan 14, 2020
1 parent c14b531 commit 0ba4a64
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lametro/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,13 @@ def _merge_events(self, events):
try:
assert event.key not in spanish_events
except AssertionError:
# Don't allow SAP events to be overwritten in the event dictionary
# Don't allow SAP events to be overwritten in the event
# dictionary. If this error is raised, there is more than
# one SAP event for a meeting body on the same day, i.e.,
# our event pairing criteria are too broad. Consider adding
# back event time as a match constraint. See:
# https://github.com/opencivicdata/scrapers-us-municipal/pull/284 &
# https://github.com/opencivicdata/scrapers-us-municipal/pull/309.
raise ValueError('{0} already exists as a key with a value of {1}'.format(event.key, spanish_events[event.key]))
spanish_events[event.key] = (event, web_event)
else:
Expand Down

0 comments on commit 0ba4a64

Please sign in to comment.