Skip to content

Commit

Permalink
previous_rdf may not have uploader
Browse files Browse the repository at this point in the history
  • Loading branch information
FynnBe committed May 8, 2024
1 parent b07a830 commit 9f9c096
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bioimageio_collection_backoffice/remote_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
UnpackingStatus,
Versions,
)
from .mailroom.constants import BOT_EMAIL
from .resource_id import validate_resource_id
from .reviewer import get_reviewers
from .s3_client import Client
Expand Down Expand Up @@ -447,7 +448,7 @@ def unpack(self, package_url: str):
)
maintainer_emails = [a["email"] for a in prev_maintainers if "email" in a]
if (
uploader != previous_rdf["uploader"]["email"]
uploader != previous_rdf.get("uploader", {}).get("email", BOT_EMAIL)
and uploader not in maintainer_emails
and uploader not in [r.email for r in get_reviewers().values()]
):
Expand Down

0 comments on commit 9f9c096

Please sign in to comment.