From 2af386914336331a45bce11be596f19fb30406d7 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Tue, 6 Jan 2009 12:50:49 +0000 Subject: [PATCH] Fix issue in get_tracker_host when the torrent has no tracker --- deluge/core/torrent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index 2f003400a..8b0b8320a 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -521,7 +521,7 @@ class Torrent: # Check if hostname is an IP address and just return it if that's the case import socket try: - socket.inet_aton(url.hostname) + socket.inet_aton(host) except socket.error: pass else: