Default cas_required_attributes to empty dictionary

pull/299/head
Steven Hammerton 2015-10-12 14:58:59 +01:00
parent 7f8fdc9814
commit ab7f9bb861
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class CasConfig(Config):
if cas_config:
self.cas_enabled = True
self.cas_server_url = cas_config["server_url"]
self.cas_required_attributes = cas_config.get("required_attributes", None)
self.cas_required_attributes = cas_config.get("required_attributes", {})
else:
self.cas_enabled = False
self.cas_server_url = None