Skip to content

Commit

Permalink
Handle pagure repos with disabled trackers.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphbean committed Dec 1, 2015
1 parent 1e4ca91 commit aa91974
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bugwarrior/services/pagure.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,12 @@ def get_issues(self, repo, keys):
response = requests.get(url)

if not bool(response):
raise IOError('Failed to talk to %r %r' % (url, response))
error = response.json()
code = error['error_code']
if code == 'ETRACKERDISABLED':
return []
else:
raise IOError('Failed to talk to %r %r' % (url, error))

issues = []
for result in response.json()[key2]:
Expand Down

0 comments on commit aa91974

Please sign in to comment.