mirror of
https://github.com/powerline/powerline.git
synced 2025-07-29 16:55:07 +02:00
Catch all urllib errors in urrlib_read()
This commit is contained in:
parent
d015d517ac
commit
24097293e5
@ -13,7 +13,7 @@ def urllib_read(url):
|
||||
import urllib2
|
||||
try:
|
||||
return urllib2.urlopen(url, timeout=5).read()
|
||||
except urllib2.HTTPError:
|
||||
except:
|
||||
return
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user