SVN commit 1179411 by ilic: Do not crash if new message does not exist. M +3 -0 poepatch.py --- trunk/l10n-support/pology/scripts/poepatch.py #1179410:1179411 @@ -523,7 +523,10 @@ # Will be inserted if reembedding requested, so compute insertion. if not patch_specs: typ = _pt_insert + if msg2 is not None: pos, weight = cat.insertion_inquiry(msg2) + else: + pos = len(cat) patch_specs.append((emsg, _flag_ediff_no_match, typ, pos, msg1, msg2, msg1_s, msg2_s))