Skip to content

Commit

Permalink
Merge pull request #171 from karlproject/use-sso-id
Browse files Browse the repository at this point in the history
Handle 'None' for sso_id without puking.
  • Loading branch information
Jim Fulton authored Jul 14, 2017
2 parents 9f3e937 + 2cfe702 commit 9dab742
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions karl/models/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,10 @@ def getter(self):
return self._sso_id

def setter(self, value):
profiles = find_profiles(self)
if profiles:
profiles.ssoid_to_name[value] = self.__name__
if value is not None:
profiles = find_profiles(self)
if profiles:
profiles.ssoid_to_name[value] = self.__name__
self._sso_id = value

return property(getter, setter)
Expand Down

0 comments on commit 9dab742

Please sign in to comment.