Skip to content

Commit

Permalink
better check for SSL support using socket.ssl
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Hamlett committed Sep 30, 2013
1 parent 097027a commit e1e8861
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion WakaTime.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@
# check if we have SSL support
try:
import ssl
import socket
socket.ssl
HAS_SSL = True
except ImportError:
except (ImportError, AttributeError):
from subprocess import Popen

if HAS_SSL:
Expand Down

0 comments on commit e1e8861

Please sign in to comment.