From 4fa3f91a325ed0c20dd1754e82e551064dfe94d7 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Wed, 21 Oct 2020 23:01:15 +0200 Subject: [PATCH] Oups wrong keywork x) --- pynyaata/connectors/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'