summaryrefslogtreecommitdiff
path: root/service/pixelated
diff options
context:
space:
mode:
authorVictor Shyba <victor.shyba@gmail.com>2015-04-15 19:28:19 -0300
committerVictor Shyba <victor.shyba@gmail.com>2015-04-15 19:28:57 -0300
commit1409c300e6e72e5c00f891205beb71c4fa9015bb (patch)
treed64a1b550dee25c67bef529fbfe5133997cf76ee /service/pixelated
parent1e277ae6903caf6ebd883d94b895bca81559a64c (diff)
Attaching error handler to Twisted
For #375
Diffstat (limited to 'service/pixelated')
-rw-r--r--service/pixelated/config/__init__.py2
1 files changed, 2 insertions, 0 deletions
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()