Module: deluge
Branch: master
Commit: 67e27b9b7af8e2bdf1c3ddb8d00981090fcfb4c2

Author: Damien Churchill <[email protected]>
Date:   Tue Apr 27 10:59:50 2010 +0100

fix reporting connection errors on the console (Closes: #1228)

---

 deluge/ui/console/commands/connect.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/deluge/ui/console/commands/connect.py 
b/deluge/ui/console/commands/connect.py
index 8bedfdd..010f6a7 100644
--- a/deluge/ui/console/commands/connect.py
+++ b/deluge/ui/console/commands/connect.py
@@ -59,7 +59,7 @@ class Command(BaseCommand):
                 component.start()
 
             def on_connect_fail(result):
-                self.console.write("{!error!}Failed to connect to %s:%s with 
reason: %s" % (host, port, result.value.exception_msg))
+                self.console.write("{!error!}Failed to connect to %s:%s with 
reason: %s" % (host, port, result.value.args[0]))
 
             d.addCallback(on_connect)
             d.addErrback(on_connect_fail)

-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to