root: fix useless supressions

This commit is contained in:
Jens Langhammer 2020-11-15 21:02:15 +01:00
parent 1248585dca
commit 93bf8eaa82
2 changed files with 0 additions and 2 deletions

View File

@ -108,7 +108,6 @@ class ProxyOutpostConfigSerializer(ModelSerializer):
@swagger_serializer_method(serializer_or_field=OpenIDConnectConfigurationSerializer) @swagger_serializer_method(serializer_or_field=OpenIDConnectConfigurationSerializer)
def get_oidc_configuration(self, obj: ProxyProvider): def get_oidc_configuration(self, obj: ProxyProvider):
"""Embed OpenID Connect provider information""" """Embed OpenID Connect provider information"""
# pylint: disable=protected-access
return ProviderInfoView(request=self.context["request"]._request).get_info(obj) return ProviderInfoView(request=self.context["request"]._request).get_info(obj)

View File

@ -112,7 +112,6 @@ class PasswordStageView(FormView, StageView):
# No user was found -> invalid credentials # No user was found -> invalid credentials
LOGGER.debug("Invalid credentials") LOGGER.debug("Invalid credentials")
# Manually inject error into form # Manually inject error into form
# pylint: disable=protected-access
errors = form._errors.setdefault("password", ErrorList()) errors = form._errors.setdefault("password", ErrorList())
errors.append(_("Invalid password")) errors.append(_("Invalid password"))
return self.form_invalid(form) return self.form_invalid(form)