projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d19eb0
)
[FIX] translate: first element of 'args' should not be None
author
olt@tinyerp.com
<>
Mon, 21 Nov 2011 08:17:00 +0000
(09:17 +0100)
committer
olt@tinyerp.com
<>
Mon, 21 Nov 2011 08:17:00 +0000
(09:17 +0100)
bzr revid: olt@tinyerp.com-
20111121081700
-3rf3gpcrq2xhe2us
bin/tools/translate.py
patch
|
blob
|
history
diff --git
a/bin/tools/translate.py
b/bin/tools/translate.py
index
176484a
..
b7d8c00
100644
(file)
--- a/
bin/tools/translate.py
+++ b/
bin/tools/translate.py
@@
-135,7
+135,7
@@
class GettextAlias(object):
if not (cr and lang):
args = frame.f_locals.get('args',False)
- if args:
+ if args and args[-1] is not None:
lang = args[-1].get('lang',False)
if frame.f_globals.get('pooler',False):
cr = pooler.get_db(frame.f_globals['pooler'].pool_dic.keys()[0]).cursor()