[IMP] tools.translate: log at debug level rather than warning when a translation fails

bzr revid: odo@openerp.com-20101012182042-d2wcjr2jru9k7j17
This commit is contained in:
Olivier Dony 2010-10-12 20:20:42 +02:00
parent 928e8abd67
commit 3af1a322d4
1 changed files with 2 additions and 2 deletions

View File

@ -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()