Skip to content

Commit a2ba6cb

Browse files
committed
fix server version handling
1 parent 2ebf76b commit a2ba6cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
client = MongoClient()
106106
client.drop_database("doctest_test")
107107
db = client.doctest_test
108-
server_major_version = int(client.server_info()['version'].split()[0])
108+
server_major_version = int(client.server_info()['version'].split()[-1][0])
109109
"""
110110

111111
# -- Options for HTML output ---------------------------------------------------

0 commit comments

Comments
 (0)