You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import riak
c = riak.RiakClient()
b = c.bucket("some_bucket_thats_never_used")
print b.get(None).exists()
b.get(None).delete()
Here's the output:
True
Traceback (most recent call last):
File "test.py", line 6, in <module>
b.get(None).delete()
File "/usr/local/lib/python2.7/dist-packages/riak-1.4.0-py2.7.egg/riak/riak_object.py", line 482, in delete
Result = t.delete(self, rw=rw, r=r, w=w, dw=dw, pr=pr, pw=pw)
File "/usr/local/lib/python2.7/dist-packages/riak-1.4.0-py2.7.egg/riak/transports/http.py", line 165, in delete
self.check_http_code(response, [204, 404])
File "/usr/local/lib/python2.7/dist-packages/riak-1.4.0-py2.7.egg/riak/transports/http.py", line 253, in check_http_code
raise Exception(m)
Exception: Expected status [204, 404], received 405 :
Here's the source code to reproduce:
Here's the output: