Closed Bug 640364 Opened 13 years ago Closed 13 years ago

Validation of language packs fails with 'TypeError: 'NoneType' object is not iterable'

Categories

(addons.mozilla.org Graveyard :: Public Pages, defect)

defect
Not set
major

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: krupa.mozbugs, Assigned: basta)

References

Details

(Keywords: regression)

Attachments

(1 file)

139.14 KB, application/x-xpinstall
Details
Attached file test file
steps to reproduce:
1. Validate the attached language pack

Validates fine in prod.

traceback details:

"Traceback (most recent call last):
  File "/data/amo_python/www/preview/zamboni/apps/devhub/tasks.py", line 27, in validator           
    result = _validator(upload.path) 
  File "/data/amo_python/www/preview/zamboni/apps/devhub/tasks.py", line 70, in _validator 
    spidermonkey=settings.SPIDERMONKEY) 
  File "/data/amo_python/www/preview/zamboni/vendor/src/amo-validator/validator/validate.py", line 37, in validate 
    validator.submain.prepare_package(bundle, path, expectation) 
  File "/data/amo_python/www/preview/zamboni/vendor/src/amo-validator/validator/submain.py", line 52, in prepare_package
    output = test_package(err, package, path, expectation) 
  File "/data/amo_python/www/preview/zamboni/vendor/src/amo-validator/validator/submain.py", line 137, in test_package 
    return test_inner_package(err, package_contents, package) 
  File "/data/amo_python/www/preview/zamboni/vendor/src/amo-validator/validator/submain.py", line 223, in test_inner_package 
    test_func(err, package_contents, xpi_package) 
  File "/data/amo_python/www/preview/zamboni/vendor/src/amo-validator/validator/testcases/l10ncompleteness.py", line 193, in test_lp_xpi 
    for ref_locale_name in ref_locales: 
TypeError: 'NoneType' object is not iterable
Summary: Validation of language pack fails with 'TypeError: 'NoneType' object is not iterable' → Validation of language packs fails with 'TypeError: 'NoneType' object is not iterable'
Assignee: nobody → mbasta
This issue is corrected by the fixes made for bug 638624
Depends on: 638624
(In reply to comment #1)
> This issue is corrected by the fixes made for bug 638624

mm, I didn't know this was dependent on a bug in a future milestone.  Bumping. :-/
Target Milestone: 6.0.0 → 6.0.1
Krupa points out that this s a regression.  Matt, is this something that can be split out and fixed today?
Here's the patch for 638624, which will also fix this bug:

https://github.com/mozilla/amo-validator/pull/4
Fixed:

https://github.com/mozilla/amo-validator/commit/07f2f7eaf8f98745570f601956ab8a0394ca1bdd
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Filed bug Bug 640748. No tracebacks on validating language packs. Marking this as verified.
Status: RESOLVED → VERIFIED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: