]> granicus.if.org Git - python/commit
Fix SF bug #482171: webchecker dies on file: URLs w/o robots.txt
authorGuido van Rossum <guido@python.org>
Tue, 11 Dec 2001 22:41:24 +0000 (22:41 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 11 Dec 2001 22:41:24 +0000 (22:41 +0000)
commitf0953b9dff9a0cc08b6dcfe206047c0490e1d38a
tree830470b9151fb3e794cb285becc5c004210f3d64
parent3a8e59ebe158d1fed37e9e916e1fa7b8af24a5d8
Fix SF bug #482171: webchecker dies on file: URLs w/o robots.txt

The cause seems to be that when a file URL doesn't exist,
urllib.urlopen() raises OSError instead of IOError.  Simply add this
to the except clause.  Not elegant, but effective. :-)
Tools/webchecker/webchecker.py