Permalink
Browse files

Fixed a problem with boolean conversion

  • Loading branch information...
gpambrozio committed May 28, 2012
1 parent 4ffa34e commit f7d1ebd16d673cd6ff35d07995fa119bf2a44bfc
Showing with 3 additions and 1 deletion.
  1. +3 −1 linkedin/model.py
View
@@ -14,7 +14,9 @@ def get_child(node, tagName):
return None
def str_to_bool(s):
- if s.lower() == "true":
+ if s is None:
+ return None
+ elif s.lower() == "true":
return True
elif s.lower() == "false":
return False

0 comments on commit f7d1ebd

Please sign in to comment.