mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix: Weekly report script error when no PR found for branch
Not all branches have a PR and code generally handled that case fine, just this assert didn't treat it as a valid result.
This commit is contained in:
parent
43617743af
commit
7417a07adb
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ def gitea_json_pull_request_by_base_and_head_get(repo_name: str, base: str, head
|
|||
"""
|
||||
url = f"{BASE_API_URL}/repos/{repo_name}/pulls/{base}/{head}"
|
||||
result = url_json_get(url, quiet=True)
|
||||
assert isinstance(result, dict)
|
||||
assert result is None or isinstance(result, dict)
|
||||
return result
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue