Skip to content

Commit

Permalink
Merge pull request #68 from opencivicdata/event_url_fix
Browse files Browse the repository at this point in the history
Define event_url prior to referencing it
  • Loading branch information
fgregg authored Apr 19, 2018
2 parents cc0a071 + d77901f commit 87e11ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion legistar/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ def events(self, since_datetime=None):
yield api_event, web_event

else:
self.warning('API event could not be found in web interface: {0}{1}'.format(events_url, api_event['EventId']))
event_url = '{0}/events/{1}'.format(self.BASE_URL, api_event['EventId'])
self.warning('API event could not be found in web interface: {0}'.format(event_url))
continue

def api_events(self, since_datetime=None):
Expand Down

0 comments on commit 87e11ce

Please sign in to comment.