summaryrefslogtreecommitdiff
path: root/community/gwibber/lp_934530.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/gwibber/lp_934530.patch')
-rw-r--r--community/gwibber/lp_934530.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/community/gwibber/lp_934530.patch b/community/gwibber/lp_934530.patch
new file mode 100644
index 000000000..6f2bd4302
--- /dev/null
+++ b/community/gwibber/lp_934530.patch
@@ -0,0 +1,21 @@
+=== modified file 'gwibber/microblog/network.py'
+--- old/gwibber/microblog/network.py 2012-03-31 15:02:54 +0000
++++ new/gwibber/microblog/network.py 2012-06-13 16:48:52 +0000
+@@ -37,8 +37,14 @@
+ logger.error("HTTP Error for %s - error code: %s", e.geturl().split("?")[0], e.getcode())
+ self.res = "HTTP error: {0}".format(e.getcode())
+ except urllib2.URLError, e:
+- logger.error("Network failure: %s", e.reason)
+- self.res = "Network error: {0}".format(e.reason)
++ logger.error("Network failure: %s", e.message)
++ self.res = "Network error: {0}".format(e.message)
++ except IOError, e:
++ logger.error("Network failure: %s", e.message)
++ self.res = "Network error: {0}".format(e.message)
++ except:
++ logger.error("Network failure: UNKNOWN")
++ self.res = "Network error: UNKNOWN"
+
+ def get_json(self):
+ try:
+