Permalink
Browse files

cleaned up a little bit

  • Loading branch information...
1 parent 017e939 commit b8b99cf223ccae5acfc991fe4be109256fd607f8 Aaron committed May 20, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 liclient/parsers/lixml.py
View
8 liclient/parsers/lixml.py
@@ -147,6 +147,8 @@ def __objectify(self, data, u_type, u):
obj = mappers.NetworkAnswerUpdate(data, u)
elif u_type == 'JOBP':
obj = mappers.NetworkJobPostingUpdate(data, u)
+ else:
+ obj = mappers.NetworkUpdate(data, u)
return obj
class LinkedInProfileParser(LinkedInXMLParser):
@@ -297,14 +299,12 @@ def __build_data(self, tree):
try:
data['id'] = self.xpath_collection['id'](tree)[0].text.strip() \
if len(self.xpath_collection['id'](tree)) else None
- except Exception, e:
- print e
+ except:
data['id'] = None
try:
data['school_name'] = self.xpath_collection['school-name'](tree)[0].text.strip() \
if len(self.xpath_collection['id'](tree)) else None
- except Exception, e:
- print e
+ except:
data['school_name'] = None
try:
data['field_of_study'] = self.xpath_collection['field-of-study'](tree)[0].text.strip() \

0 comments on commit b8b99cf

Please sign in to comment.