Skip to content

Instantly share code, notes, and snippets.

@almet
Created April 4, 2012 11:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save almet/2300409 to your computer and use it in GitHub Desktop.
Save almet/2300409 to your computer and use it in GitHub Desktop.
try:
cache['foo']
except KeyError:
pass
else:
self.assertTrue(False, "KeyError hadn't been thrown")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment