Commit b750d7fe authored by Jonathan Wiedemann's avatar Jonathan Wiedemann
Browse files

fix #21

parent a8a7d4b6
......@@ -77,9 +77,7 @@ class MoocWorkbench ( Workbench ):
'''Check version of workbench'''
print(u'Check workbench version...')
import urllib.request
import ssl
gcontext = ssl.SSLContext() # Only for gangstars
webUrl = urllib.request.urlopen('https://framagit.org/freecad-france/mooc-workbench/raw/master/InitGui.py', context=gcontext)
webUrl = urllib.request.urlopen('http://framagit.org/freecad-france/mooc-workbench/raw/master/InitGui.py')
for line in webUrl:
if 'MOOC_VERSION = ' in str(line, 'utf-8'):
mooc_version = str(line, 'utf-8').split(' = ')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment