Add message property to GithubException (#2591)

This commit is contained in:
Trim21
2023-07-08 11:51:19 +02:00
committed by GitHub
parent 91b3f40f79
commit f087cad3cb
4 changed files with 25 additions and 11 deletions
+1 -1
View File
@@ -403,7 +403,7 @@ class CompletableGithubObject(GithubObject):
def __complete(self):
if self._url.value is None:
raise IncompletableObject(400, "Returned object contains no URL", None)
raise IncompletableObject(400, message="Returned object contains no URL")
headers, data = self._requester.requestJsonAndCheck("GET", self._url.value)
self._storeAndUseAttributes(headers, data)
self.__completed = True