6582: Fix problem with warning message
svn: r22181
This commit is contained in:
parent
5e42724282
commit
9cddf824a2
@ -387,7 +387,7 @@ class ViewManager(CLIManager):
|
|||||||
(config.get("behavior.addons-url"), lang[:2]))
|
(config.get("behavior.addons-url"), lang[:2]))
|
||||||
fp = urlopen(URL, timeout=10)
|
fp = urlopen(URL, timeout=10)
|
||||||
except Exception as err: # some error
|
except Exception as err: # some error
|
||||||
LOG.warn("Failed to open %s: %s" (lang, str(err)))
|
LOG.warn("Failed to open %s: %s" % (lang, err))
|
||||||
fp = None
|
fp = None
|
||||||
if fp and fp.getcode() == 200: # ok
|
if fp and fp.getcode() == 200: # ok
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user