Fixing existing translation credits fails with a traceback

Bug #479385 reported by Данило Шеган
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Critical
Данило Шеган

Bug Description

Here's the traceback for fix_translation_credits.py run. It ran up to 40k/410k before failing like this.

Traceback (most recent call last):
  File "/srv/launchpad.net/production/launchpad/scripts/rosetta/fix_translation_credits.py", line 28, in ?
    script.lock_and_run()
  File "/srv/launchpad.net/production/launchpad-rev-8648/lib/lp/services/scripts/base.py", line 290, in lock_and_run
    implicit_begin=implicit_begin, isolation=isolation)
  File "/srv/launchpad.net/production/launchpad-rev-8648/lib/lp/services/scripts/base.py", line 248, in run
    self.main()
  File "/srv/launchpad.net/production/launchpad/scripts/rosetta/fix_translation_credits.py", line 22, in main
    fixer.run()
  File "/srv/launchpad.net/production/launchpad-rev-8648/lib/lp/translations/scripts/fix_translation_credits.py", line 98, in run
    DBLoopTuner(loop, 5).run()
  File "/srv/launchpad.net/production/launchpad-rev-8648/lib/canonical/launchpad/utilities/looptuner.py", line 107, in run
    self.operation(chunk_size)
  File "/srv/launchpad.net/production/launchpad-rev-8648/lib/lp/translations/scripts/fix_translation_credits.py", line 74, in __call__
    potmsgset.setTranslationCreditsToTranslated(pofile)
  File "/srv/launchpad.net/production/launchpad-rev-8648/lib/lp/translations/model/potmsgset.py", line 1062, in setTranslationCreditsToTranslated
    lock_timestamp=datetime.datetime.now(pytz.UTC))
  File "/srv/launchpad.net/production/launchpad-rev-8648/lib/lp/translations/model/potmsgset.py", line 760, in updateTranslation
    lock_timestamp))
  File "/srv/launchpad.net/production/launchpad-rev-8648/lib/lp/translations/model/potmsgset.py", line 716, in _isTranslationMessageASuggestion
    assert (is_imported or is_editor or
AssertionError

Related branches

Changed in rosetta:
status: Triaged → In Progress
Revision history for this message
Ursula Junque (ursinha) wrote : A commit mentioned this bug
Changed in rosetta:
status: In Progress → Fix Committed
tags: added: qa-needstesting
tags: added: qa-ok
removed: qa-needstesting
Changed in rosetta:
milestone: none → 3.1.11
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.