Edit download_page function
Dieser Commit ist enthalten in:
Ursprung
c971d90595
Commit
e1ff78118d
1 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
|
@ -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 ""
|
||||
|
||||
|
||||
|
|
Laden …
In neuem Issue referenzieren