|
@@ -514,16 +514,16 @@ def http_request(url):
|
514
|
514
|
try:
|
515
|
515
|
response = urllib.request.urlopen(url, timeout = 10)
|
516
|
516
|
except HTTPError as error:
|
517
|
|
- print_cnsl_error("HTTPError: '%s'" % error)
|
|
517
|
+ print_cnsl_error("HTTPError: '%s'" % error, url)
|
518
|
518
|
return ""
|
519
|
519
|
except URLError as error:
|
520
|
|
- print_cnsl_error("URLError: '%s'" % error)
|
|
520
|
+ print_cnsl_error("URLError: '%s'" % error, url)
|
521
|
521
|
return ""
|
522
|
522
|
else:
|
523
|
523
|
try:
|
524
|
524
|
response = urllib.urlopen(url)
|
525
|
525
|
except IOError as error:
|
526
|
|
- print_cnsl_error("HTTPError: '%s'" % error)
|
|
526
|
+ print_cnsl_error("HTTPError: '%s'" % error, url)
|
527
|
527
|
return ""
|
528
|
528
|
|
529
|
529
|
if response.getcode() != 200:
|