Skip to content
Browse files

Fixed a problem with boolean conversion

  • Loading branch information...
1 parent 4ffa34e commit f7d1ebd16d673cd6ff35d07995fa119bf2a44bfc @gpambrozio gpambrozio committed May 28, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 linkedin/model.py
View
4 linkedin/model.py
@@ -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.
Something went wrong with that request. Please try again.