commit: 8ad6b5ed9f90e07fb2847b38818d1352c71fcb18
parent d5bb814d348558a9700f9d8d2a063a2de2de4274
Author: Philipp Hagemeister <phihag@phihag.de>
Date: Sun, 11 Jan 2015 10:47:39 +0100
[compat] Correct socket error class reference
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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