[issue16250] URLError invoked with reason as filename
Chris Jerdonek
report at bugs.python.org
Tue Oct 16 18:52:05 CEST 2012
Chris Jerdonek added the comment:
> raise URLError('local file error: not on local host')
I should also point out that URLError invocations with formats like the above already do occur in Lib/urllib/request.py. For example:
raise URLError('ftp error: no host given')
exc = URLError('ftp error: %s' % msg)
raise URLError("http protocol error: bad status line")
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16250>
_______________________________________
More information about the Python-bugs-list
mailing list