diff options
author | Victor Shyba <victor.shyba@gmail.com> | 2015-06-03 21:43:22 -0300 |
---|---|---|
committer | Victor Shyba <victor.shyba@gmail.com> | 2015-06-03 21:43:22 -0300 |
commit | 0e440af998888e47313f657067db6d0db41e343a (patch) | |
tree | c991e8fd0016080cf747bdf7cd0a5d524222ed69 /service/pixelated | |
parent | 61b01dc43cc0e1ba4f9ee4f64f05beb212831c3f (diff) |
errors not being captured, use errbacks
Diffstat (limited to 'service/pixelated')
-rw-r--r-- | service/pixelated/config/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/service/pixelated/config/__init__.py b/service/pixelated/config/__init__.py index 8a3733a3..bb1fda2c 100644 --- a/service/pixelated/config/__init__.py +++ b/service/pixelated/config/__init__.py @@ -99,4 +99,10 @@ def initialize(): args.leap_home, leap_session)) + def _quit_on_error(failure): + failure.printTraceback() + reactor.stop() + + deferred.addErrback(_quit_on_error) + reactor.run() |