TypeError raised by rosetta-poimport.py script
Bug #872335 reported by
Diogo Matsubara
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Critical
|
Curtis Hovey |
Bug Description
OOPS-2103POI1
Traceback (most recent call last):
Module lp.translations
self.
Module lp.translations
(mail_subject, mail_body) = target.
Module lp.translations
pomessage)
TypeError: %d format: a number is required, not NoneType
<oops-message-0>: %d format: a number is required, not NoneType -- Finnish (fi) translation of evolution in Ubuntu Oneiric package "evolution" (id 5525150)
path: /srv/launchpad.
script_name: rosetta-poimport
Related branches
lp:~sinzui/launchpad/poimport-typeerror
- Brad Crittenden (community): Approve (code)
-
Diff: 141 lines (+82/-22)2 files modifiedlib/lp/translations/model/pofile.py (+24/-21)
lib/lp/translations/tests/test_pofile.py (+58/-1)
tags: | added: lp-translations rosetta-imports |
Changed in launchpad: | |
assignee: | nobody → Curtis Hovey (sinzui) |
status: | Triaged → In Progress |
tags: |
added: qa-untestable removed: qa-needstesting |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The TypeError happens when the script is trying to log an error. All the data is sanitised except for the call to potmsgset. getSequence( self.potemplate ) to get the sequence. This can be None if theTTI is incomplete. We just want to ensure the data is sane enough so that we can log the error.