Skip to content

Commit 9be74e6

Browse files
committed
Expose any errors from verifying commits
1 parent b612cc9 commit 9be74e6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

datajunction-server/datajunction_server/internal/git/github_service.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,10 @@ async def verify_commit(self, repo_path: str, commit_sha: str) -> bool:
615615
headers=self.headers,
616616
timeout=30.0,
617617
)
618-
return resp.status_code == 200
618+
if resp.status_code == 404:
619+
return False
620+
self._handle_error(resp, f"verify commit {commit_sha} in {repo_path}")
621+
return True
619622

620623
async def download_archive(
621624
self,

0 commit comments

Comments
 (0)