PYTHON-2138 Fix NameError: name 'AwsSaslContext' is not defined
This commit is contained in:
parent
903643b3d0
commit
fbafa9c847
@ -21,6 +21,9 @@ try:
|
||||
PyMongoAuthAwsError)
|
||||
_HAVE_MONGODB_AWS = True
|
||||
except ImportError:
|
||||
class AwsSaslContext(object):
|
||||
def __init__(self, credentials):
|
||||
pass
|
||||
_HAVE_MONGODB_AWS = False
|
||||
|
||||
import bson
|
||||
|
||||
Loading…
Reference in New Issue
Block a user