From 5180edbaf659a2008fdd43dde0be567e921476b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Wed, 13 Jun 2018 09:38:56 +0200 Subject: [PATCH] Further reduce user_ops line length in preparation for monaco --- solvable/src/webservice/user_ops.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/solvable/src/webservice/user_ops.py b/solvable/src/webservice/user_ops.py index f40087d..c7693c7 100644 --- a/solvable/src/webservice/user_ops.py +++ b/solvable/src/webservice/user_ops.py @@ -13,7 +13,10 @@ class UserOps: self.password = password self.db_session = db_session self.message_sender = MessageSender() - self.log = partial(self.message_sender.send, 'Authenticator') + self.log = partial( + self.message_sender.send, + 'Authenticator' + ) def authenticate(self): """ @@ -31,7 +34,10 @@ class UserOps: self.password, user.passwordhash ): - self.log(f'Invalid credentials for user "{self.username}"!') + self.log( + f'Invalid credentials for ' + f'user "{self.username}"!' + ) raise InvalidCredentialsError self.log(f'User "{self.username}" logged in!')