Fix CI
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Michel Roux 2021-12-07 11:18:23 +01:00
parent 56ecddedcb
commit 234a1d7a23

View File

@ -72,11 +72,9 @@ ConnectorCache = Cache()
def curl_content(url, params=None, ajax=False, debug=True): def curl_content(url, params=None, ajax=False, debug=True):
from . import get_instance
output = '' output = ''
http_code = 500 http_code = 500
method = 'post' if (params is not None) else 'get' method = 'post' if (params is not None) else 'get'
instance = get_instance(url)
if ajax: if ajax:
headers = {'User-Agent': 'YggRobot', headers = {'User-Agent': 'YggRobot',