diff --git a/swift3/acl_handlers.py b/swift3/acl_handlers.py index 0caaf9a5..2a1f71f9 100644 --- a/swift3/acl_handlers.py +++ b/swift3/acl_handlers.py @@ -72,7 +72,7 @@ def get_acl(headers, body, bucket_owner, object_owner=None): else: if body: # Specifying grant with both header and xml is not allowed. - raise UnexpectedContent + raise UnexpectedContent() return acl diff --git a/swift3/request.py b/swift3/request.py index 2441bb4b..4bbc3a2e 100644 --- a/swift3/request.py +++ b/swift3/request.py @@ -152,7 +152,7 @@ class Request(swob.Request): raise AccessDenied() if 'Authorization' not in self.headers: - raise NotS3Request + raise NotS3Request() try: keyword, info = self.headers['Authorization'].split(' ', 1) @@ -160,7 +160,7 @@ class Request(swob.Request): raise AccessDenied() if keyword != 'AWS': - raise NotS3Request + raise NotS3Request() try: access_key, signature = info.rsplit(':', 1) @@ -663,7 +663,7 @@ class Request(swob.Request): if not isinstance(value, int): # check the instance because int() could build # a long instance - raise ValueError + raise ValueError() except ValueError: err_msg = 'Provided %s not an integer or within ' \ 'integer range' % param