aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2015-01-11 10:47:39 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2015-01-11 10:47:39 +0100
commit8ad6b5ed9f90e07fb2847b38818d1352c71fcb18 (patch)
treeb0be5e3783f86f675598fa09263b77e83d4f2526 /youtube_dl
parentd5bb814d348558a9700f9d8d2a063a2de2de4274 (diff)
[compat] Correct socket error class reference
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/compat.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/compat.py b/youtube_dl/compat.py
index 07ceaa170..4453b34fc 100644
--- a/youtube_dl/compat.py
+++ b/youtube_dl/compat.py
@@ -329,7 +329,7 @@ if sys.version_info < (2, 7):
if err is not None:
raise err
else:
- raise error("getaddrinfo returns an empty list")
+ raise socket.error("getaddrinfo returns an empty list")
else:
compat_socket_create_connection = socket.create_connection