aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-09-08 14:14:06 +0200
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-09-08 14:14:06 +0200
commit55a762fe15f820189751e7c5cd217ecd82d6d950 (patch)
treeeac10076f26d8a88d9520464c6d84a04488743e3
parentFixed bug in open_url(). (diff)
downloadnewspipe-55a762fe15f820189751e7c5cd217ecd82d6d950.tar.gz
newspipe-55a762fe15f820189751e7c5cd217ecd82d6d950.tar.bz2
newspipe-55a762fe15f820189751e7c5cd217ecd82d6d950.zip
Fixed minor bugs.
-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