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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=68dcd34c0a71d3b2a792d6b69a096de49de7cfd2;p=python Fixup bare try/except. --- diff --git a/Lib/shelve.py b/Lib/shelve.py index 059d7f3a00..5e680bc3c6 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