0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

Fix smoke.py for older versions of python.

This commit is contained in:
Spencer T Brody 2011-11-09 23:07:21 -05:00
parent 72dcc0b296
commit f786c8ef38

View File

@ -127,7 +127,7 @@ class mongod(object):
def setup_admin_user(self, port=mongod_port):
try:
Connection( "localhost" , int(port) ).admin.add_user("admin","password")
except OperationFailure as e:
except OperationFailure, e:
if e.message == 'need to login':
pass # SERVER-4225
else: