Fix #1513: Unhandled Twisted Error in test_listen_port

This commit is contained in:
Calum Lind 2011-02-09 18:40:19 +00:00
parent ea22bb0b10
commit 376a23e6fd
1 changed files with 4 additions and 0 deletions

View File

@ -754,7 +754,11 @@ class Core(component.Component):
def on_get_page(result): def on_get_page(result):
return bool(int(result)) return bool(int(result))
def logError(failure):
log.warning("Error testing listen port: %s", failure)
d.addCallback(on_get_page) d.addCallback(on_get_page)
d.addErrback(logError)
return d return d