Do not use SSL on OSX because for some reason it does not work.

pull/313/head
Jussi Pakkanen 9 years ago
parent 18c423db15
commit 6d137f400e
  1. 9
      wraptool.py

@ -18,12 +18,19 @@ import urllib.request, json
import sys, os import sys, os
import configparser import configparser
import shutil import shutil
import platform
try: try:
# FIXME for some unknown reason ssl connections
# fail on OSX. Thus fall back to unencrypted
# traffic.
if platform.system().lower() == 'darwin':
import nonexisting
import ssl import ssl
has_ssl = True has_ssl = True
API_ROOT = 'https://wrapdb.mesonbuild.com/v1/' API_ROOT = 'https://wrapdb.mesonbuild.com/v1/'
except ImportError: except ImportError:
print('Warning: ssl not available, traffic not authenticated.') print('Warning: ssl not available, traffic not authenticated.',
file=sys.stderr)
has_ssl = False has_ssl = False
API_ROOT = 'http://wrapdb.mesonbuild.com/v1/' API_ROOT = 'http://wrapdb.mesonbuild.com/v1/'

Loading…
Cancel
Save