Oh, sorry I misread your code base on the diff!
I like how you fixed the exception. We are getting errors based on not being able to decode the JSON from the urllib2.HTTPError. Me and my team will consider merging your branch into our fork.