POFile:+translate OOPSes when loading a suggestion with no POFile

Bug #1340010 reported by William Grant on 2014-07-10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
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://launchpad.net/listen/0.4/+pots/listen) and has a TranslationMessage for Language 540 (en_GB), but there's no POFile for Language 540 in POTemplate 14011.

     Module lp.translations.model.translationmessage, line 565, in preloadDetails
    Module lp.services.database.bulk, line 170, in load_related
    keys.update(map(partial(getattr, owning_object), foreign_keys))

AttributeError: 'NoneType' object has no attribute 'potemplateID'

This is a regression introduced by my preloadDetails work.

Related branches

William Grant (wgrant) on 2014-07-10
tags: added: oops
Changed in launchpad:
status: Triaged → In Progress
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
William Grant (wgrant) on 2014-07-10
tags: added: qa-ok
removed: qa-needstesting
William Grant (wgrant) on 2014-07-11
Changed in launchpad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers