Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 68dcd34

Browse files
committed
Fixup bare try/except.
1 parent d0d592f commit 68dcd34

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/shelve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def close(self):
140140
self.sync()
141141
try:
142142
self.dict.close()
143-
except:
143+
except AttributeError:
144144
pass
145145
self.dict = 0
146146

0 commit comments

Comments
 (0)