Skip to content

Commit

Permalink
Fixed a problem with boolean conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
gpambrozio committed May 28, 2012
1 parent 4ffa34e commit f7d1ebd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion linkedin/model.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ def get_child(node, tagName):
return None return None


def str_to_bool(s): def str_to_bool(s):
if s.lower() == "true": if s is None:
return None
elif s.lower() == "true":
return True return True
elif s.lower() == "false": elif s.lower() == "false":
return False return False
Expand Down

0 comments on commit f7d1ebd

Please sign in to comment.