~openerp/openobject-server/5.0

« back to all changes in this revision

Viewing changes to bin/tools/translate.py

  • Committer: olt at tinyerp
  • Date: 2011-11-21 08:17:00 UTC
  • Revision ID: olt@tinyerp.com-20111121081700-3rf3gpcrq2xhe2us
[FIX] translate: first element of 'args' should not be None

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
        
136
136
        if not (cr and lang):
137
137
            args = frame.f_locals.get('args',False)
138
 
            if args:
 
138
            if args and args[-1] is not None:
139
139
                lang = args[-1].get('lang',False)
140
140
                if frame.f_globals.get('pooler',False):
141
141
                    cr = pooler.get_db(frame.f_globals['pooler'].pool_dic.keys()[0]).cursor()