Skip to content

Instantly share code, notes, and snippets.

@thinkt4nk
Created March 13, 2011 05:19
Show Gist options
  • Save thinkt4nk/867890 to your computer and use it in GitHub Desktop.
Save thinkt4nk/867890 to your computer and use it in GitHub Desktop.
def get_attribute(self,attribute_name):
try:
return self.data[attribute_name]
except (KeyError,TypeError):
print self.data.__class__
exit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment