From 3330ed1601cf77b52f946b978ae24b30168d71aa Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 18 Dec 2020 13:04:51 +0000 Subject: [PATCH] Use spaces for easier debug --- session.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/session.py b/session.py index 96b6de02..bc25a9b2 100644 --- a/session.py +++ b/session.py @@ -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: