Commit 534231d06e4a7132e6fcf57cecc6a1dbb2212b06

Authored by Thiago Franco de Moraes
1 parent 44470245
Exists in master

Using certifi to fix problems with ssl certifications on Mac app

Showing 1 changed file with 7 additions and 0 deletions   Show diff stats
app.py
... ... @@ -29,6 +29,13 @@ import traceback
29 29  
30 30 import re
31 31  
  32 +if sys.platform == "darwin":
  33 + try:
  34 + import certifi
  35 + os.environ["SSL_CERT_FILE"] = certifi.where()
  36 + except ImportError:
  37 + pass
  38 +
32 39 if sys.platform == 'win32':
33 40 try:
34 41 import winreg
... ...