From e1ff78118daafbd732adc34ba7d7020f0de348e8 Mon Sep 17 00:00:00 2001 From: docjyJ Date: Thu, 3 Sep 2020 18:10:59 +0200 Subject: [PATCH] Edit download_page function --- washinsa/washinsa_handler.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/washinsa/washinsa_handler.py b/washinsa/washinsa_handler.py index 0c25df5..1d2188e 100644 --- a/washinsa/washinsa_handler.py +++ b/washinsa/washinsa_handler.py @@ -59,11 +59,12 @@ def download_page(code): """ Downloads the page from proxiwash website """ + url = WASHINSA_URL + code try: - with urllib.request.urlopen(WASHINSA_URL + code) as response: + with urllib.request.urlopen(url) as response: return response.read().decode() except: - print("Error processing following url: " + WASHINSA_URL) + print("Error processing following url: " + url) return "" -- 2.39.5