diff options
-rw-r--r-- | Lib/shelve.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/shelve.py b/Lib/shelve.py index 9b65a09..6bdc030 100644 --- a/Lib/shelve.py +++ b/Lib/shelve.py @@ -75,8 +75,7 @@ class Shelf: def close(self): try: - if self.dict: - self.dict.close() + self.dict.close() except: pass self.dict = 0 |