From: Raymond Hettinger Date: Tue, 27 May 2003 06:30:52 +0000 (+0000) Subject: Fixup bare try/except. X-Git-Tag: v2.3c1~600 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=68dcd34c0a71d3b2a792d6b69a096de49de7cfd2;p=thirdparty%2FPython%2Fcpython.git Fixup bare try/except. --- diff --git a/Lib/shelve.py b/Lib/shelve.py index 059d7f3a00d5..5e680bc3c68b 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