From ad040bafaf562672013173a69ed4e211b4596e24 Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Sun, 9 Feb 2020 20:38:50 +1100 Subject: [PATCH] Fix mistake in Repository.create_fork() (#1383) I modified #1306 to use the NotSet parameter after it was pointed out this was more appropriate however I did not also update the conditional. --- github/Repository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/Repository.py b/github/Repository.py index 26cb0610..a701e52a 100644 --- a/github/Repository.py +++ b/github/Repository.py @@ -2052,7 +2052,7 @@ class Repository(github.GithubObject.CompletableGithubObject): organization, str ), organization post_parameters = {} - if organization is not None: + if organization is not github.GithubObject.NotSet: post_parameters["organization"] = organization headers, data = self._requester.requestJsonAndCheck( "POST", self.url + "/forks", input=post_parameters,