PYTHON-2138 Fix NameError: name 'AwsSaslContext' is not defined

This commit is contained in:
Shane Harvey 2020-06-05 16:22:31 -07:00
parent 903643b3d0
commit fbafa9c847

View File

@ -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