mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 10:51:14 +00:00
Export headers in GithubException (#1887)
Since the headers that led to an exception are also useful, firstly pass them into the constructor, and then export them in a property. Test one specific use case to make sure of coverage. Fixes #1814
This commit is contained in:
+1
-1
@@ -435,7 +435,7 @@ class Requester:
|
||||
cls = GithubException.UnknownObjectException
|
||||
else:
|
||||
cls = GithubException.GithubException
|
||||
return cls(status, output)
|
||||
return cls(status, output, headers)
|
||||
|
||||
def __structuredFromJson(self, data):
|
||||
if len(data) == 0:
|
||||
|
||||
Reference in New Issue
Block a user