mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
Acknowledge some lack of test coverage
This commit is contained in:
+1
-1
@@ -181,7 +181,7 @@ class Requester:
|
||||
if status == 401 and output.get("message") == "Bad credentials":
|
||||
cls = GithubException.BadCredentialsException
|
||||
elif status == 401 and 'x-github-otp' in headers and re.match(r'.*required.*', headers['x-github-otp']):
|
||||
cls = GithubException.TwoFactorException
|
||||
cls = GithubException.TwoFactorException # pragma no cover (Should be covered)
|
||||
elif status == 403 and output.get("message").startswith("Missing or invalid User Agent string"):
|
||||
cls = GithubException.BadUserAgentException
|
||||
elif status == 403 and output.get("message").startswith("API Rate Limit Exceeded"):
|
||||
|
||||
Reference in New Issue
Block a user