Skip to content

Commit 47c6506

Browse files
committed
use NotSet instead of None
1 parent 5e64c11 commit 47c6506

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

patchwork/common/client/scm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from azure.devops.released.git.git_client import GitClient
1919
from azure.devops.v7_1.git.models import GitPullRequest, GitPullRequestSearchCriteria, TeamProjectReference, GitRepository
2020
from github import Auth, Consts, Github, GithubException, PullRequest, Issue
21+
from github.GithubObject import NotSet
2122
from github.GithubException import UnknownObjectException
2223
from gitlab import Gitlab, GitlabAuthenticationError, GitlabError
2324
from gitlab.v4.objects import ProjectMergeRequest
@@ -522,7 +523,7 @@ def create_pr(
522523
# before creating a PR, check if one already exists
523524
repo = self.github.get_repo(slug)
524525

525-
issue_obj = None
526+
issue_obj = NotSet
526527
if issue_url is not None:
527528
resource_slug_and_id = self.get_slug_and_id_from_url(issue_url)
528529
if resource_slug_and_id is not None:

0 commit comments

Comments
 (0)