aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsource/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/utils.py b/source/utils.py
index 4d3fb131..e35a34df 100755
--- a/source/utils.py
+++ b/source/utils.py
@@ -101,7 +101,7 @@ def open_url(url):
# server couldn't fulfill the request
error = (url, e.code, \
http.server.BaseHTTPRequestHandler.responses[e.code][1])
- pyaggr3g470r_log.error(url + " " + e.code + " " + \
+ pyaggr3g470r_log.error(url + " " + str(e.code) + " " + \
http.server.BaseHTTPRequestHandler.responses[e.code][1])
return (False, error)
except urllib.error.URLError as e:
@@ -111,7 +111,7 @@ def open_url(url):
pyaggr3g470r_log.error(url + " " + e.reason)
else:
error = (url, e.reason.errno, e.reason.strerror)
- pyaggr3g470r_log.error(url + " " + e.reason.errno + " " + \
+ pyaggr3g470r_log.error(url + " " + str(e.reason.errno) + " " + \
e.reason.strerror)
return (False, error)
bgstack15