Permalink
Browse files

avoid AttributeError

  • Loading branch information...
1 parent 8e2a481 commit 0bc7cd7f2f4c3cdd3ca23235460be080ead5e3ac @jsundram jsundram committed Mar 27, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 liclient/parsers/mappers.py
@@ -29,7 +29,7 @@ def xmlify(self):
return etree.tostring(self.xml)
def __str__(self):
- return self.update_content if self.update_content else '<No content>'
+ return self.update_content if hasattr(self, 'update_content') and self.update_content else '<No Content>'
class LinkedInError(LinkedInData):
def __repr__(self):

0 comments on commit 0bc7cd7

Please sign in to comment.