Use spaces for easier debug

main
Bob Mottram 2020-12-18 13:04:51 +00:00
parent 7ee5c89ff2
commit 3330ed1601
1 changed files with 6 additions and 6 deletions

View File

@ -76,14 +76,14 @@ def getJson(session, url: str, headers: {}, params: {},
result = session.get(url, headers=sessionHeaders, params=sessionParams)
return result.json()
except requests.exceptions.RequestException as e:
print('ERROR: getJson failed\nurl: ' + str(url) + '\n' +
'headers: ' + str(sessionHeaders) + '\n' +
'params: ' + str(sessionParams) + '\n')
print('ERROR: getJson failed\nurl: ' + str(url) + ' ' +
'headers: ' + str(sessionHeaders) + ' ' +
'params: ' + str(sessionParams))
print(e)
except ValueError as e:
print('ERROR: getJson failed\nurl: ' + str(url) + '\n' +
'headers: ' + str(sessionHeaders) + '\n' +
'params: ' + str(sessionParams) + '\n')
print('ERROR: getJson failed\nurl: ' + str(url) + ' ' +
'headers: ' + str(sessionHeaders) + ' ' +
'params: ' + str(sessionParams) + ' ')
print(e)
except SocketError as e:
if e.errno == errno.ECONNRESET: