diff options
-rw-r--r-- | swift/1.4.8/plugins/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/swift/1.4.8/plugins/utils.py b/swift/1.4.8/plugins/utils.py index 59e704702cd..7a67c1cb695 100644 --- a/swift/1.4.8/plugins/utils.py +++ b/swift/1.4.8/plugins/utils.py @@ -274,8 +274,8 @@ def check_user_xattr(path): raise try: xattr.remove(path, 'user.test.key1') - except Exception, err: - logging.exception("xattr.remove failed on %s err: %s", path, str(err)) + except IOError as err: + logging.exception("check_user_xattr: remove failed on %s err: %s", path, str(err)) #Remove xattr may fail in case of concurrent remove. return True |