From 0b282f45e069fbdbbab6fdefc6ef8a10f38c059b Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 3 Mar 2019 17:45:20 +0100 Subject: [PATCH] fix pylint messages --- passbook/password_expiry_policy/models.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/passbook/password_expiry_policy/models.py b/passbook/password_expiry_policy/models.py index f4f406dd4..7ac5ac292 100644 --- a/passbook/password_expiry_policy/models.py +++ b/passbook/password_expiry_policy/models.py @@ -29,10 +29,12 @@ class PasswordExpiryPolicy(Policy): if not self.deny_only: user.set_unusable_password() user.save() - return False, _('Password expired %(days)d days ago. Please update your password.' % { - 'days': days_since_expiry - }) + return False, _(('Password expired %(days)d days ago. ' + 'Please update your password.') % { + 'days': days_since_expiry + }) return False, _('Password has expired.') + return True class Meta: