Skip to content

Commit

Permalink
Remove code that will never trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
hmpf committed Jun 20, 2024
1 parent 2f85345 commit 0042e17
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/howitz/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,15 +200,7 @@ def update_events():
return updated_ids

while True:
try:
updated = current_app.updater.get_event_update()
except RetryError as retryErr: # Intermittent error in Zino
current_app.logger.exception('RetryError when NTIE refreshing current events %s', retryErr)
try:
updated = current_app.updater.get_event_update()
except RetryError as retryErr: # Intermittent error in Zino
current_app.logger.exception('RetryError when NTIE refreshing current events after retry, %s', retryErr)
raise
updated = current_app.updater.get_event_update()
if not updated:
break
updated_ids.add(updated)
Expand Down

0 comments on commit 0042e17

Please sign in to comment.