loading a translation file fails if it contains no translations

Bug #1047129 reported by Christophe Combelles
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Confirmed
Low
OpenERP's Framework R&D

Bug Description

Create a translation file for a module, containing just :

# Translation of OpenERP Server.
# This file contains the translation of the following modules:
# * account

Try to load this file with --load-language :

→ Traceback

  File "/home/dadafkas/projets/anybox/hg/openerp.anybox.fr/parts/openerp-6.1-20120905-232133/openerp/tools/translate.py", line 324, in next
    line = self.lines.pop(0).strip()
IndexError: pop from empty list

Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Low
status: New → Confirmed
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.