Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip expertise selection if not exist #135

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

haroldrubio
Copy link
Member

This PR catches if the provided invitation does not exist - in this case, the API will treat the job as if no invitation was provided.

@haroldrubio haroldrubio self-assigned this Nov 10, 2022
config.exclusion_inv = edge_inv_id

try:
inv = openreview_client.get_invitation(edge_inv_id)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can use tools that returns a None when the invitation doesn't exist:

invitation = openreview.tools.get_invitation(openreview_client, edge_inv_id)
if invitation:
   ....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants