aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/compat.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube_dl/compat.py')
-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