Module: deluge
Branch: 1.3-stable
Commit: 1d0857964ec6d5a1f5c50ec6580d5f7a46aa1667

Author: Calum Lind <[email protected]>
Date:   Wed Feb  9 18:40:19 2011 +0000

Fix #1513: Unhandled Twisted Error in test_listen_port

---

 deluge/core/core.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/deluge/core/core.py b/deluge/core/core.py
index bcfd716..6c22b12 100644
--- a/deluge/core/core.py
+++ b/deluge/core/core.py
@@ -754,7 +754,11 @@ class Core(component.Component):
         def on_get_page(result):
             return bool(int(result))
 
+        def logError(failure):
+            log.warning("Error testing listen port: %s", failure)
+
         d.addCallback(on_get_page)
+        d.addErrback(logError)
 
         return d
 

-- 
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