summaryrefslogtreecommitdiff
path: root/sunshine
diff options
context:
space:
mode:
authorKrzysztof Klinikowski <kkszysiu@gmail.com>2010-03-31 13:50:21 +0200
committerKrzysztof Klinikowski <kkszysiu@gmail.com>2010-03-31 13:50:21 +0200
commite2a891119d3fb93671ed04ddb4de435e525e32a4 (patch)
tree716d57bc2c0a59435d078acd9a7958d95fcff4d6 /sunshine
parente273c87fff4bc547f09d28ced6dfe4ba0fbf5057 (diff)
Fixed bug related with incorrect detection of SSL and raising NameError.
Diffstat (limited to 'sunshine')
-rw-r--r--sunshine/connection.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/sunshine/connection.py b/sunshine/connection.py
index e3b07ad..376cf59 100644
--- a/sunshine/connection.py
+++ b/sunshine/connection.py
@@ -57,9 +57,13 @@ try:
ssl_support = True
except ImportError:
ssl_support = False
-if ssl and not ssl.supported:
+try:
+ if ssl and ssl.supported:
+ ssl_support = True
+except NameError:
ssl_support = False
+
if ssl_support == False:
logger.info('SSL unavailable. Falling back to normal non-SSL connection.')
else: