summaryrefslogtreecommitdiffstats
path: root/Lib/shelve.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-05-27 06:30:52 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-05-27 06:30:52 (GMT)
commit68dcd34c0a71d3b2a792d6b69a096de49de7cfd2 (patch)
tree77fa2fe089f5fbf3bc9e93a506b4d41d2ee0d7ec /Lib/shelve.py
parentd0d592fd3225daa50a56b84b6e3df61ffe8bfea4 (diff)
downloadcpython-68dcd34c0a71d3b2a792d6b69a096de49de7cfd2.zip
cpython-68dcd34c0a71d3b2a792d6b69a096de49de7cfd2.tar.gz
cpython-68dcd34c0a71d3b2a792d6b69a096de49de7cfd2.tar.bz2
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 059d7f3..5e680bc 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