Skip to content

Commit fbafa9c

Browse files
committed
PYTHON-2138 Fix NameError: name 'AwsSaslContext' is not defined
1 parent 903643b commit fbafa9c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pymongo/auth_aws.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
PyMongoAuthAwsError)
2222
_HAVE_MONGODB_AWS = True
2323
except ImportError:
24+
class AwsSaslContext(object):
25+
def __init__(self, credentials):
26+
pass
2427
_HAVE_MONGODB_AWS = False
2528

2629
import bson

0 commit comments

Comments
 (0)