diff options
author | Victor Shyba <victor.shyba@gmail.com> | 2015-04-15 19:28:19 -0300 |
---|---|---|
committer | Victor Shyba <victor.shyba@gmail.com> | 2015-04-15 19:28:57 -0300 |
commit | 1409c300e6e72e5c00f891205beb71c4fa9015bb (patch) | |
tree | d64a1b550dee25c67bef529fbfe5133997cf76ee | |
parent | 1e277ae6903caf6ebd883d94b895bca81559a64c (diff) |
Attaching error handler to Twisted
For #375
-rw-r--r-- | service/pixelated/config/__init__.py | 2 |
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() |