Don't clear

master
Bob Mottram 2019-08-18 13:52:39 +01:00
parent f8efb37c6e
commit a1cbc6e9c3
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ def getJson(session,url: str,headers: {},params: {}, \
#"Mozilla/5.0 (Linux; Android 5.1.1; Nexus 5)" #"Mozilla/5.0 (Linux; Android 5.1.1; Nexus 5)"
if not session: if not session:
print('WARN: no session specified for getJson') print('WARN: no session specified for getJson')
session.cookies.clear() #session.cookies.clear()
try: try:
result=session.get(url, headers=sessionHeaders, params=sessionParams) result=session.get(url, headers=sessionHeaders, params=sessionParams)
return result.json() return result.json()