Fixed exception name for current urllib

- Legacy-Id: 1626
This commit is contained in:
Pasi Eronen 2009-08-05 19:55:20 +00:00
parent 5fa1f29e98
commit 4e8f3d6818

View file

@ -421,7 +421,7 @@ class UrlTestCase(TestCase):
note(" 200 %s" % (master))
except urllib.URLError, e:
note(" Error retrieving %s: %s" % (master, e))
except urllib.BadStatusLine, e:
except urllib.HTTPError, e:
note(" Error retrieving %s: %s" % (master, e))
try:
if goodhtml and response.content: