From 24097293e52d47ca1532820ccd66ae773788474e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20Silkeb=C3=A6kken?= Date: Fri, 15 Mar 2013 08:31:47 +0100 Subject: [PATCH] Catch all urllib errors in urrlib_read() --- powerline/lib/url.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerline/lib/url.py b/powerline/lib/url.py index ef46df70..0ff53ade 100644 --- a/powerline/lib/url.py +++ b/powerline/lib/url.py @@ -13,7 +13,7 @@ def urllib_read(url): import urllib2 try: return urllib2.urlopen(url, timeout=5).read() - except urllib2.HTTPError: + except: return