Skip to content

Commit

Permalink
assert zenodo access token is present
Browse files Browse the repository at this point in the history
  • Loading branch information
FynnBe committed May 27, 2024
1 parent e5fd0af commit 0afd542
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bioimageio_collection_backoffice/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ def backup_published_version(
raise ValueError("Missing license")

headers = {"Content-Type": "application/json"}
params = {"access_token": settings.zenodo_api_access_token.get_secret_value()}
access_token = settings.zenodo_api_access_token.get_secret_value()
assert len(access_token) > 1, "missing zenodo api access token"
params = {"access_token": access_token}

# List the files at the model URL
file_urls = v.get_file_urls()
Expand Down

0 comments on commit 0afd542

Please sign in to comment.