6582: Fix problem with warning message

svn: r22180
This commit is contained in:
Nick Hall 2013-05-05 18:17:37 +00:00
parent 88c7dfd37d
commit fb22b83f14

View File

@ -387,7 +387,7 @@ class ViewManager(CLIManager):
(config.get("behavior.addons-url"), lang[:2]))
fp = urlopen(URL, timeout=10)
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
if fp and fp.getcode() == 200: # ok
break