Skip to content

Commit

Permalink
Improve bitbucket error message.
Browse files Browse the repository at this point in the history
.json is a bound method.  Calling it is not safe during error handling.
  • Loading branch information
ralphbean committed Mar 6, 2014
1 parent eb53716 commit 8059b11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bugwarrior/services/bitbucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def get_data(self, url):
if response.status_code != 200:
raise IOError(
"Non-200 status code %r; %r; %r" % (
response.status_code, url, response.json
response.status_code, url, response.text,
)
)
if callable(response.json):
Expand Down

0 comments on commit 8059b11

Please sign in to comment.