/[Apache-SVN]
ViewVC logotype

Revision 1498947


Jump to revision: Previous Next
Author: dongsheng
Date: Tue Jul 2 14:12:44 2013 UTC (10 years, 9 months ago)
Changed paths: 1
Log Message:
Make sure msgstr is not None before do iteration.

Obvious fix.

* tools/dev/po-merge.py
  Since parse_translation maybe return (comments, None, None, None),
  we should not do iteration without check msgstr is not None. Otherwise,
  we may encounter the following TypeError:

    Traceback (most recent call last):
      File "../../../../trunk/tools/dev/po-merge.py", line 196, in <module>
        main(sys.argv)
      File "../../../../trunk/tools/dev/po-merge.py", line 181, in main
        for m in msgstr:
    TypeError: 'NoneType' object is not iterable


Changed paths

Path Details
Directorysubversion/trunk/tools/dev/po-merge.py modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26