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:
parent
72dcc0b296
commit
f786c8ef38
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user