Commit 890e1a48 authored by Giorgos Verigakis's avatar Giorgos Verigakis
Browse files

Add status_code in Container already exists exception

parent 2d0b6dcc
......@@ -56,7 +56,7 @@ class StorageClient(Client):
path = '/%s/%s' % (self.account, container)
r = self.put(path, success=(201, 202))
if r.status_code == 202:
raise ClientError("Container already exists")
raise ClientError("Container already exists", r.status_code)
def get_container_meta(self, container):
self.assert_account()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment