summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJochen Breuer <jbreuer@suse.de>2019-02-12 14:21:09 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-02-24 10:37:24 +0100
commit83e131eb4f1ca540c1d77a8fca098e2a70156f4a (patch)
tree84da467bd7fcc86054c4179bc4a7f7e56053604c
parentd4c68c5676dd85b65f6d771a060ffe5a5869db82 (diff)
downloadurlgrabber-83e131eb4f1ca540c1d77a8fca098e2a70156f4a.tar.gz
Catch proper exception type
-rw-r--r--test/test_grabber.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_grabber.py b/test/test_grabber.py
index b0b43f7..4d3bf93 100644
--- a/test/test_grabber.py
+++ b/test/test_grabber.py
@@ -599,7 +599,7 @@ class ProxyFTPAuthTests(ProxyHTTPAuthTests):
self.skip()
try:
fo = urlopen(self.url).close()
- except IOError:
+ except URLError:
self.skip()
self.g = URLGrabber()