Skip to content

Commit b08b9b7

Browse files
committed
Added warning for unknown HTTP status.
1 parent 3bd621c commit b08b9b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

github2/request.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ def __init__(self, message, content, code):
9696
if code in responses:
9797
self.code_reason = responses[code]
9898
else:
99-
self.code_reason = ""
99+
self.code_reason = "<unknown status code>"
100+
LOGGER.warning('Unknown HTTP status %r, please file an issue', code)
100101

101102

102103
class GithubRequest(object):

0 commit comments

Comments
 (0)