diff options
-rw-r--r-- | swift/common/utils.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/swift/common/utils.py b/swift/common/utils.py index 5281be941..8a840ae00 100644 --- a/swift/common/utils.py +++ b/swift/common/utils.py @@ -856,8 +856,12 @@ class LoggingHandlerWeakRef(weakref.ref): """ def close(self): referent = self() - if referent: - referent.close() + try: + if referent: + referent.close() + except KeyError: + # This is to catch an issue with old py2.6 versions + pass def flush(self): referent = self() |