summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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