Skip to content

Catch RuntimeError when repo does not exist#22

Open
2Ryan09 wants to merge 3 commits into
mainfrom
catch-repo-not-found
Open

Catch RuntimeError when repo does not exist#22
2Ryan09 wants to merge 3 commits into
mainfrom
catch-repo-not-found

Conversation

@2Ryan09

@2Ryan09 2Ryan09 commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

A previous PR (#20) introduced idempotency for users and leaders on NewRepo requests. This has the assumption that when a repo is not found, it would return None. Rather, the repo resolver raises in an unintended manner when the repo is not found (see slaclab/coact-api#26).

These changes specifically catch a new RuntimeError that is raised when a repo does not yet exist.

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.

1 participant