From 1409c300e6e72e5c00f891205beb71c4fa9015bb Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Wed, 15 Apr 2015 19:28:19 -0300 Subject: Attaching error handler to Twisted For #375 --- service/pixelated/config/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/service/pixelated/config/__init__.py b/service/pixelated/config/__init__.py index af264c77..67552f99 100644 --- a/service/pixelated/config/__init__.py +++ b/service/pixelated/config/__init__.py @@ -38,6 +38,7 @@ import pixelated.support.ext_esmtp_sender_factory import pixelated.support.ext_fetch import pixelated.support.ext_keymanager_fetch_key import pixelated.support.ext_requests_urllib3 +from pixelated.support.error_handler import error_handler def initialize(): @@ -74,6 +75,7 @@ def initialize(): d = deferToThread(init_soledad) d.addCallback(stop_loading_app) + d.addErrback(error_handler) reactor.callWhenRunning(load_app) reactor.run() -- cgit v1.2.3