8000 Fix bug in Repository#create_status · christhompson/github3.py@78731e2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 78731e2

Browse files
committed
Fix bug in Repository#create_status
This meant that even in the failure case we returned a Status object
1 parent 0a92f71 commit 78731e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

github3/repos/repo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,7 @@ def create_status(self, sha, state, target_url=None, description=None,
953953
:returns: the status created if successful
954954
:rtype: :class:`~github3.repos.status.Status`
955955
"""
956-
json = {}
956+
json = None
957957
if sha and state:
958958
data = {'state': state, 'target_url': target_url,
959959
'description': description, 'context': context}

0 commit comments

Comments
 (0)
0