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)
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)

View file

@ -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)