diff options
author | Patrick Maia and Victor Shyba <pixelated-team+pmaia+vshyba@thoughtworks.com> | 2014-11-26 11:01:22 -0300 |
---|---|---|
committer | Patrick Maia <pmaia@thoughtworks.com> | 2014-11-27 17:05:08 -0300 |
commit | 16c1d14808330f23bcfa7f186124533c13b44ddc (patch) | |
tree | 1c2a8a7217ef7043fd8ac37dea29c58516534683 /service | |
parent | c079e101b19e4596b72536679ad9e302a80bcff2 (diff) |
no need to catch if we will just raise
Diffstat (limited to 'service')
-rw-r--r-- | service/pixelated/bitmask_libraries/session.py | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/service/pixelated/bitmask_libraries/session.py b/service/pixelated/bitmask_libraries/session.py index 6b3b5732..1143eb52 100644 --- a/service/pixelated/bitmask_libraries/session.py +++ b/service/pixelated/bitmask_libraries/session.py @@ -35,16 +35,13 @@ SESSIONS = {} def open(username, password, server_name): - try: - certs_home = os.path.abspath(os.path.join(os.path.abspath(__file__), "..", "..", "certificates")) + certs_home = os.path.abspath(os.path.join(os.path.abspath(__file__), "..", "..", "certificates")) - config = LeapConfig(certs_home=certs_home) - provider = LeapProvider(server_name, config) - session = LeapSessionFactory(provider).create(LeapCredentials(username, password)) + config = LeapConfig(certs_home=certs_home) + provider = LeapProvider(server_name, config) + session = LeapSessionFactory(provider).create(LeapCredentials(username, password)) - return session - except: - raise + return session class LeapSession(object): |