Fix #1513: Unhandled Twisted Error in test_listen_port
This commit is contained in:
parent
ea22bb0b10
commit
376a23e6fd
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue