6582: Fix problem with warning message

svn: r22181
This commit is contained in:
Nick Hall 2013-05-05 18:17:52 +00:00
parent 5e42724282
commit 9cddf824a2

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