[BUG] HTTPError instance has no attribute 'errno'

Martin Pool mbp at sourcefrog.net
Wed Nov 16 06:40:21 GMT 2005


On 16 Nov 2005, James Blackwell <jblack at merconline.com> wrote:
> On Tue, Nov 15, 2005 at 08:41:57PM -0800, Robey Pointer wrote:
> > I'm not tremendously surprised; I'd never heard of the "errno"  
> > attribute of IOError until reading about it on this list. :)  It's  
> > not in the python docs here either:
> > 
> >     http://docs.python.org/lib/module-exceptions.html
> > 
> > Is it doc'd somewhere else?
> 
> I seem to have errno information here with "pydoc errno"

Yes, but that doesn't say it's in IOError.  Nevertheless it does seem to
generally be there, and is apparently the intended way to distinguish
different io errors.

-- 
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051116/128616d8/attachment.pgp 


More information about the bazaar mailing list