diff options
-rw-r--r-- | Lib/shelve.py | 2 |
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 |