diff options
author | Duda Dornelles <dudassdornelles@gmail.com> | 2015-01-23 14:49:45 -0200 |
---|---|---|
committer | Pixpoa pairing <pixpoapairing@pixelated-project.org> | 2015-01-23 14:49:45 -0200 |
commit | 98072dc78ba16afa1d4e3db02548046ae96cd10c (patch) | |
tree | b713a6a3e86caaf6fffff75da6fb330366b8cb1c /service | |
parent | cb65ba82f11c552d6f19c260e2426f25ee9b0f6c (diff) |
#245 stopping the reactor when user cant authenticate
Diffstat (limited to 'service')
-rw-r--r-- | service/pixelated/config/app_factory.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/service/pixelated/config/app_factory.py b/service/pixelated/config/app_factory.py index cd9f363f..ebae465d 100644 --- a/service/pixelated/config/app_factory.py +++ b/service/pixelated/config/app_factory.py @@ -69,9 +69,11 @@ def init_leap_session(app, leap_home): leap_home=leap_home) except ConnectionError, error: print("Can't connect to the requested provider", error) + reactor.stop() sys.exit(1) except LeapAuthException, e: print("Couldn't authenticate with the credentials provided %s" % e.message) + reactor.stop() sys.exit(1) return leap_session |