Skip to content

Commit 21c20ff

Browse files
committed
Don't catch exception from code that should never fail.
1 parent e712c73 commit 21c20ff

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

couchdb/tests/client.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,7 @@ def setUp(self):
139139
self.db = self.server.create('python-tests')
140140

141141
def tearDown(self):
142-
try:
143-
self.server.delete('python-tests')
144-
except http.ResourceNotFound:
145-
pass
142+
self.server.delete('python-tests')
146143

147144

148145
class DatabaseTestCase(TempDatabaseMixin, unittest.TestCase):

0 commit comments

Comments
 (0)