Skip to content
This repository was archived by the owner on Feb 10, 2022. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.

Commit 30880a4

Browse files
author
Ben Olive
committed
Handle unrecognized http error codes
1 parent 98a9647 commit 30880a4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

github2/request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def __init__(self, message, content, code):
8888
self.message = message
8989
self.content = content
9090
self.code = code
91-
if code and responses:
91+
if responses and code in responses:
9292
self.code_reason = responses[code]
9393
else:
9494
self.code_reason = ""

0 commit comments

Comments
 (0)