Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

cleaned up a little bit

  • Loading branch information...
commit b8b99cf223ccae5acfc991fe4be109256fd607f8 1 parent 017e939
Aaron Brenzel authored

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  liclient/parsers/lixml.py
8  liclient/parsers/lixml.py
@@ -147,6 +147,8 @@ def __objectify(self, data, u_type, u):
147 147
             obj = mappers.NetworkAnswerUpdate(data, u)
148 148
         elif u_type == 'JOBP':
149 149
             obj = mappers.NetworkJobPostingUpdate(data, u)
  150
+        else:
  151
+            obj = mappers.NetworkUpdate(data, u)
150 152
         return obj
151 153
     
152 154
 class LinkedInProfileParser(LinkedInXMLParser):
@@ -297,14 +299,12 @@ def __build_data(self, tree):
297 299
         try:
298 300
             data['id'] = self.xpath_collection['id'](tree)[0].text.strip() \
299 301
                         if len(self.xpath_collection['id'](tree)) else None
300  
-        except Exception, e:
301  
-            print e
  302
+        except:
302 303
             data['id'] = None
303 304
         try:
304 305
             data['school_name'] = self.xpath_collection['school-name'](tree)[0].text.strip() \
305 306
                         if len(self.xpath_collection['id'](tree)) else None
306  
-        except Exception, e:
307  
-            print e
  307
+        except:
308 308
             data['school_name'] = None
309 309
         try:
310 310
             data['field_of_study'] = self.xpath_collection['field-of-study'](tree)[0].text.strip() \

0 notes on commit b8b99cf

Please sign in to comment.
Something went wrong with that request. Please try again.