Skip to content

Commit 01f3f5f

Browse files
authored
Fix indentation issue at validate_signed_elements method
1 parent 6b11f26 commit 01f3f5f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/onelogin/saml2/response.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -573,12 +573,12 @@ def process_signed_elements(self):
573573

574574
signed_elements.append(signed_element)
575575

576-
if signed_elements:
577-
if not self.validate_signed_elements(signed_elements, raise_exceptions=True):
578-
raise OneLogin_Saml2_ValidationError(
579-
'Found an unexpected Signature Element. SAML Response rejected',
580-
OneLogin_Saml2_ValidationError.UNEXPECTED_SIGNED_ELEMENT
581-
)
576+
if signed_elements:
577+
if not self.validate_signed_elements(signed_elements, raise_exceptions=True):
578+
raise OneLogin_Saml2_ValidationError(
579+
'Found an unexpected Signature Element. SAML Response rejected',
580+
OneLogin_Saml2_ValidationError.UNEXPECTED_SIGNED_ELEMENT
581+
)
582582
return signed_elements
583583

584584
@return_false_on_exception

0 commit comments

Comments
 (0)