summaryrefslogtreecommitdiff
path: root/Lib/shelve.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-05-27 06:30:52 +0000
committerRaymond Hettinger <python@rcn.com>2003-05-27 06:30:52 +0000
commit68dcd34c0a71d3b2a792d6b69a096de49de7cfd2 (patch)
tree77fa2fe089f5fbf3bc9e93a506b4d41d2ee0d7ec /Lib/shelve.py
parentd0d592fd3225daa50a56b84b6e3df61ffe8bfea4 (diff)
downloadcpython-git-68dcd34c0a71d3b2a792d6b69a096de49de7cfd2.tar.gz
Fixup bare try/except.
Diffstat (limited to 'Lib/shelve.py')
-rw-r--r--Lib/shelve.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/shelve.py b/Lib/shelve.py
index 059d7f3a00..5e680bc3c6 100644
--- a/Lib/shelve.py
+++ b/Lib/shelve.py
@@ -140,7 +140,7 @@ class Shelf(UserDict.DictMixin):
self.sync()
try:
self.dict.close()
- except:
+ except AttributeError:
pass
self.dict = 0