POFile:+translate OOPSes when loading a suggestion with no POFile
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Critical
|
William Grant |
Bug Description
POFile:+translate OOPSes like OOPS-179ec78410b8af059254cb47ab76a328 when it attempts to preloadDetails on a suggestion that doesn't have a corresponding POFile.
In the only known case so far, POTMsgSet 3203927 ("Delete") exists in POTemplate 14011 (https:/
Module lp.translations
['potemplat
Module lp.services.
keys.
AttributeError: 'NoneType' object has no attribute 'potemplateID'
This is a regression introduced by my preloadDetails work.
Related branches
- William Grant: Approve (code)
-
Diff: 78 lines (+37/-2)2 files modifiedlib/lp/translations/model/translationmessage.py (+3/-1)
lib/lp/translations/tests/test_translationmessage.py (+34/-1)
tags: | added: oops |
Changed in launchpad: | |
status: | Triaged → In Progress |
tags: |
added: qa-ok removed: qa-needstesting |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
Fixed in stable r17111 <http:// bazaar. launchpad. net/~launchpad- pqm/launchpad/ stable/ revision/ 17111>.