summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/saml2/response.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/saml2/response.py b/src/saml2/response.py
index 2b055259..b5e35149 100644
--- a/src/saml2/response.py
+++ b/src/saml2/response.py
@@ -435,10 +435,12 @@ class StatusResponse(object):
self.response = mold.response
def issuer(self):
- if self.response.issuer is None:
- return ""
- else:
- return self.response.issuer.text.strip()
+ issuer_value = (
+ self.response.issuer.text
+ if self.response.issuer is not None
+ else ""
+ ).strip()
+ return issuer_value
class LogoutResponse(StatusResponse):