diff options
author | Raymond Hettinger <python@rcn.com> | 2003-05-27 06:30:52 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-05-27 06:30:52 (GMT) |
commit | 68dcd34c0a71d3b2a792d6b69a096de49de7cfd2 (patch) | |
tree | 77fa2fe089f5fbf3bc9e93a506b4d41d2ee0d7ec /Lib | |
parent | d0d592fd3225daa50a56b84b6e3df61ffe8bfea4 (diff) | |
download | cpython-68dcd34c0a71d3b2a792d6b69a096de49de7cfd2.zip cpython-68dcd34c0a71d3b2a792d6b69a096de49de7cfd2.tar.gz cpython-68dcd34c0a71d3b2a792d6b69a096de49de7cfd2.tar.bz2 |
Fixup bare try/except.
Diffstat (limited to 'Lib')
-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 |