]> granicus.if.org Git - python/commitdiff
Fixup bare try/except.
authorRaymond Hettinger <python@rcn.com>
Tue, 27 May 2003 06:30:52 +0000 (06:30 +0000)
committerRaymond Hettinger <python@rcn.com>
Tue, 27 May 2003 06:30:52 +0000 (06:30 +0000)
Lib/shelve.py

index 059d7f3a00d5d9af7280cca498640e7e0120bdf4..5e680bc3c68b6a0d624a91c8f1559773bf289c43 100644 (file)
@@ -140,7 +140,7 @@ class Shelf(UserDict.DictMixin):
         self.sync()
         try:
             self.dict.close()
-        except:
+        except AttributeError:
             pass
         self.dict = 0