lanto03 / couchdb-python

Automatically exported from code.google.com/p/couchdb-python
Other
0 stars 0 forks source link

Server.__getitem__ does not raise ResourceNotFound when database does not exist. #41

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a couchdb server object 
>>> import couchdb
>>> s = couchdb.client.Server('http://localhost:5984/')

2. 'get' a database from the server which does not exist yet.
>>> db = s['foobar']

What is the expected output? What do you see instead?
Expect a ResourceNotFound exception. Instead a Database object is returned.

What version of the product are you using? On what operating system?
0.5, Ubuntu Linux 8.04

Please provide any additional information below.
Patch is attached below.

Original issue reported on code.google.com by kochhar...@gmail.com on 17 Dec 2008 at 7:26

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks, should be fixed by r157.

Original comment by cmlenz on 29 Jun 2009 at 2:02