Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Closing the shelve like a good pythonista

  • Loading branch information...
commit ee092c3c9216f64ee815c05e2772257dfa9cff3f 1 parent efb24c9
@davej authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  tinchy.py
View
1  tinchy.py
@@ -32,6 +32,7 @@ def make_tinchy_url():
def redirect_to_fatty_url(tinchy_id):
storage = shelve.open("tinchy")
if tinchy_id not in storage:
+ storage.close()
return "Nope, this tinchy URL wasn't found."
fatty_url = storage[tinchy_id]
storage.close()
Please sign in to comment.
Something went wrong with that request. Please try again.