From a9b9765254dc22d7d6bcd2352383ce1c0e4afc5d Mon Sep 17 00:00:00 2001 From: Vincent Jacques Date: Fri, 6 Sep 2013 11:17:09 +0200 Subject: [PATCH] Acknowledge branch coverage lack --- github/Requester.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/github/Requester.py b/github/Requester.py index 836b776e..9901d3dd 100644 --- a/github/Requester.py +++ b/github/Requester.py @@ -324,4 +324,6 @@ class Requester: requestHeaders["Authorization"] = "Basic (login and password removed)" elif requestHeaders["Authorization"].startswith("token"): requestHeaders["Authorization"] = "token (oauth token removed)" + else: # pragma no cover (Cannot happen, but could if we add an authentication method => be prepared) + requestHeaders["Authorization"] = "(unknown auth removed)" # pragma no cover (Cannot happen, but could if we add an authentication method => be prepared) logger.debug("%s %s://%s%s %s %s ==> %i %s %s", str(verb), self.__scheme, self.__hostname, str(url), str(requestHeaders), str(input), status, str(responseHeaders), str(output))