Skip to content

Commit 4497aa0

Browse files
author
Roland Hedberg
committed
Minor style adjustment
1 parent d328cd8 commit 4497aa0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/saml2/client_base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -540,13 +540,13 @@ def parse_authn_request_response(self, xmlstr, binding, outstanding=None,
540540
resp = self._parse_response(xmlstr, AuthnResponse,
541541
"assertion_consumer_service",
542542
binding, **kwargs)
543-
except StatusError, err:
543+
except StatusError as err:
544544
logger.error("SAML status error: %s" % err)
545545
raise
546546
except UnravelError:
547547
return None
548-
except Exception, exc:
549-
logger.error("%s" % exc)
548+
except Exception:
549+
logger.error("XML parse error")
550550
raise
551551

552552
#logger.debug(">> %s", resp)

0 commit comments

Comments
 (0)