Skip to content

Commit

Permalink
avoid AttributeError
Browse files Browse the repository at this point in the history
  • Loading branch information
jsundram committed Mar 27, 2011
1 parent 8e2a481 commit 0bc7cd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion liclient/parsers/mappers.py
Expand Up @@ -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):
Expand Down

0 comments on commit 0bc7cd7

Please sign in to comment.