changeset 5c8a9ffc956a in trytond:default
details: https://hg.tryton.org/trytond?cmd=changeset&node=5c8a9ffc956a
description:
Pass formatting variable as keyword arguments to gettext
issue10713
diffstat:
trytond/res/user.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (16 lines):
diff -r f27cde11788b -r 5c8a9ffc956a trytond/res/user.py
--- a/trytond/res/user.py Thu Sep 23 10:22:01 2021 +0200
+++ b/trytond/res/user.py Thu Sep 23 10:39:41 2021 +0200
@@ -285,9 +285,9 @@
length = config.getint('password', 'length', default=0)
if length > 0:
if len(password_b) < length:
- raise PasswordError(gettext('res.msg_password_length', {
- 'length': length,
- }))
+ raise PasswordError(gettext('res.msg_password_length',
+ length=length,
+ ))
path = config.get('password', 'forbidden', default=None)
if path:
with open(path, 'r') as f: