[BUG] HTTPError instance has no attribute 'errno'

Alexander Belchenko bialix at ukr.net
Wed Nov 16 02:27:31 GMT 2005


Aaron Bentley пишет:
> | Well, I'm definitely got "exotic HTTP error", probably John know how
> | much exotic?
> Strangely, I only get boring connection timeouts from John's branch.
> 
> It's stupid that they claim to be a subclass of IOError without an errno
> member, but I guess we should just throw in an extra hasattr:

Thanks. It's much better, at now I explicitly see what error is:

bzr: ERROR: HTTP Error 504: Gateway Time-out
   command: 'c:\\utils\\bzr.py' 'miss'
       pwd: u'E:\\work\\Python\\bzr\\0.6\\meinel-win32'
     error: urllib2.HTTPError
   at C:\Python24\lib\urllib2.py line 480, in http_error_default()
   see "C:\.bzr.log" for debug information


Alexander




More information about the bazaar mailing list