Skip to content

Commit

Permalink
Fix UnboundLocalError (#548)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvandenburgh authored Nov 20, 2024
1 parent 28f181e commit 1c233ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rdwatch/scoring/views/satellite_fetching.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def satellite_fetching_running(
results = []
for item in running_site_ids:
task = AsyncResult(item['celery_id'])
task_info = None
error = item['error']
if isinstance(task.info, Exception):
error = str(task.info)
Expand Down

0 comments on commit 1c233ca

Please sign in to comment.