Skip to content

Commit

Permalink
Check if there is log object. This makes test_50_server.py pass
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorenzo Gil Sanchez committed Dec 8, 2011
1 parent f129e83 commit 96b8c2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/saml2/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,8 @@ def parse_authn_request(self, enc_request, binding=BINDING_HTTP_REDIRECT):
"""

response = {}
_log_info = self.log.info
if self.log:
_log_info = self.log.info

# The addresses I should receive messages like this on
receiver_addresses = self.conf.endpoint("single_sign_on_service",
Expand Down

0 comments on commit 96b8c2a

Please sign in to comment.