[Pkg-mozext-commits] [adblock-plus] 403/464: Fixed: downloading translations fails on empty locales
David Prévot
taffit at moszumanska.debian.org
Tue Jul 22 20:44:38 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository adblock-plus.
commit 4428082185c018a6f441299ec40a2f8e11fb76a7
Author: Wladimir Palant <trev at adblockplus.org>
Date: Wed Oct 9 14:14:22 2013 +0200
Fixed: downloading translations fails on empty locales
---
localeTools.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/localeTools.py b/localeTools.py
index 3876da3..2ce6aa4 100644
--- a/localeTools.py
+++ b/localeTools.py
@@ -270,6 +270,8 @@ def preprocessChromeLocale(path, metadata, isMaster):
def postprocessChromeLocale(path, data):
parsed = json.loads(data)
+ if isinstance(parsed, list):
+ return
# Delete description from translations
for key, value in parsed.iteritems():
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git
More information about the Pkg-mozext-commits
mailing list