diff --git a/pynyaata/connectors/core.py b/pynyaata/connectors/core.py index f366265..38d955e 100644 --- a/pynyaata/connectors/core.py +++ b/pynyaata/connectors/core.py @@ -99,7 +99,7 @@ def curl_content(url, params=None, ajax=False, debug=True): http_code = response.status_code except CloudflareException as e: if CLOUDPROXY_ENDPOINT: - nonlocal cloudproxy_session + global cloudproxy_session if not cloudproxy_session: json_session = requests.post(CLOUDPROXY_ENDPOINT, headers=headers, data=dumps({ 'cmd': 'sessions.create'