Skip to content

Commit

Permalink
Do not fail if artifacts are not configured at all - old tasks normally
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 committed Feb 26, 2024
1 parent 05069ed commit ae29150
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion workers/app/task/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,12 @@ def upload_scraper_artifacts(self):
logger.error("No scraper to upload its artifacts…")
return # scraper gone, we can't access artifacts

if not self.task["upload"]["artifacts"]["upload_uri"]:
if (
"upload" not in self.task
or "artifacts" not in self.task["upload"]
or "upload_uri" not in self.task["upload"]["artifacts"]
or not self.task["upload"]["artifacts"]["upload_uri"]
):
logger.debug("No artifacts upload URI configured")
return

Expand Down

0 comments on commit ae29150

Please sign in to comment.