~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to scripts/rosetta/remove-upstream-translations.py

  • Committer: Carlos Perello Marin
  • Date: 2006-08-16 09:14:34 UTC
  • mto: (3691.1.231 launchpad)
  • mto: This revision was merged to the branch mainline in revision 3707.
  • Revision ID: carlos.perello@canonical.com-20060816091434-76168f1e821b4843
Fixed a bug raised by the new sampledata additions

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
                list(potemplate.pofiles),
79
79
                key=lambda p: (p.language.code, p.variant))
80
80
        else:
81
 
            pofiles = [potemplate.getPOFileByLang(lang_code, variant)]
 
81
            pofile = potemplate.getPOFileByLang(lang_code, variant)
 
82
            if pofile is None:
 
83
                pofiles = []
 
84
            else:
 
85
                pofiles = [pofile]
82
86
 
83
87
        for pofile in pofiles:
84
88
            logger_object.debug('Processing %s...' % pofile.title)