Pass formatting variable as keyword arguments to gettext
issue10713
This commit is contained in:
1 parent
9ae04f3e68
commit
51f63441ca
1 file changed
+3
-3
+3
-3
@@ -285,9 +285,9 @@ class User(avatar_mixin(100, 'login'), DeactivableMixin, ModelSQL, ModelView):
|
||||
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:
|
||||
|
||||
Reference in new issue
Block a user