Skip to content

Commit

Permalink
fix assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderegg committed Aug 20, 2024
1 parent aa3f670 commit a2a3fa2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ async def get_project_owner(engine: Engine, project_uuid: ProjectID) -> UserID:
owner_id = await connection.scalar(stmt)
if owner_id is None:
raise ProjectNotFoundError(project_uuid=project_uuid)
assert isinstance(owner_id, UserID)
assert isinstance(owner_id, int)
return owner_id

0 comments on commit a2a3fa2

Please sign in to comment.