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:
928e8ab
)
[IMP] tools.translate: log at debug level rather than warning when a translation...
author
Olivier Dony
<odo@openerp.com>
Tue, 12 Oct 2010 18:20:42 +0000
(20:20 +0200)
committer
Olivier Dony
<odo@openerp.com>
Tue, 12 Oct 2010 18:20:42 +0000
(20:20 +0200)
bzr revid: odo@openerp.com-
20101012182042
-d2wcjr2jru9k7j17
bin/tools/translate.py
patch
|
blob
|
history
diff --git
a/bin/tools/translate.py
b/bin/tools/translate.py
index
64c30af
..
e2b4d64
100644
(file)
--- a/
bin/tools/translate.py
+++ b/
bin/tools/translate.py
@@
-170,8
+170,8
@@
class GettextAlias(object):
cr.execute('SELECT value FROM ir_translation WHERE lang=%s AND type IN (%s, %s) AND src=%s', (lang, 'code','sql_constraint', source))
res_trans = cr.fetchone()
res = res_trans and res_trans[0] or source
- except:
- logger.warn('translation went wrong for string %s', repr(source))
+ except Exception:
+ logger.debug('translation went wrong for string %s', repr(source))
finally:
if is_new_cr:
cr.close()