Skip to content

Commit 9cc122c

Browse files
committed
Merge pull request #11 from Mic92/fix-deleted-repo
check if repository still exists
2 parents e113782 + 6bb4c7f commit 9cc122c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

git-pull-request

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ def fetch(repo, pullreq):
149149

150150
data = json.loads(data)
151151
pr = data
152+
if pr['head']['repo'] == None:
153+
print("remote repository for this pull request "
154+
"does not exist anymore.")
155+
return 6
152156
display(pr)
153157

154158
local = 'pull-request-%s' % (pullreq)

0 commit comments

Comments
 (0)