Mercurial > hg > bzconsole
changeset 30:07dc3f9de6bc
print the damn thing
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 14 May 2012 15:43:30 -0700 |
parents | c412148c8c1e |
children | f6513032ad28 |
files | bzconsole/api.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bzconsole/api.py Tue Apr 24 13:46:15 2012 -0700 +++ b/bzconsole/api.py Mon May 14 15:43:30 2012 -0700 @@ -213,10 +213,13 @@ opener = urllib2.build_opener(MyHTTPHandler) opener.open(req) return - + try: response = urllib2.urlopen(req) except Exception, e: + print e + if data: + print data import pdb; pdb.set_trace() the_page = response.read() return json.loads(the_page)