diff --git a/gyb.py b/gyb.py index 72b474b..ae39eed 100755 --- a/gyb.py +++ b/gyb.py @@ -685,8 +685,9 @@ def getCRMService(login_hint): GYB_PROJECT_APIS = 'https://raw.githubusercontent.com/jay0lee/got-your-back/master/project-apis.txt?' def enableProjectAPIs(project_name, checkEnabled): + global httpc global anonhttpc - s, c = httpc.request(GYB_PROJECT_APIS, 'GET') + s, c = anonhttpc.request(GYB_PROJECT_APIS, 'GET') if s.status < 200 or s.status > 299: print('ERROR: tried to retrieve %s but got %s' % (GYB_PROJECT_APIS, s.status)) sys.exit(0)