From 93bf8eaa8270935cce0f238571c7b5da9df8aa04 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 15 Nov 2020 21:02:15 +0100 Subject: [PATCH] root: fix useless supressions --- passbook/providers/proxy/api.py | 1 - passbook/stages/password/stage.py | 1 - 2 files changed, 2 deletions(-) diff --git a/passbook/providers/proxy/api.py b/passbook/providers/proxy/api.py index 47d907030..bfc9ea1ee 100644 --- a/passbook/providers/proxy/api.py +++ b/passbook/providers/proxy/api.py @@ -108,7 +108,6 @@ class ProxyOutpostConfigSerializer(ModelSerializer): @swagger_serializer_method(serializer_or_field=OpenIDConnectConfigurationSerializer) def get_oidc_configuration(self, obj: ProxyProvider): """Embed OpenID Connect provider information""" - # pylint: disable=protected-access return ProviderInfoView(request=self.context["request"]._request).get_info(obj) diff --git a/passbook/stages/password/stage.py b/passbook/stages/password/stage.py index 914f537c9..52e061458 100644 --- a/passbook/stages/password/stage.py +++ b/passbook/stages/password/stage.py @@ -112,7 +112,6 @@ class PasswordStageView(FormView, StageView): # No user was found -> invalid credentials LOGGER.debug("Invalid credentials") # Manually inject error into form - # pylint: disable=protected-access errors = form._errors.setdefault("password", ErrorList()) errors.append(_("Invalid password")) return self.form_invalid(form)