PYTHON-1420 Fix heartbeatFrequencyMS ConfigurationError.

This commit is contained in:
Shane Harvey 2017-11-21 17:17:38 -08:00
parent 9018525ac8
commit 628cd2d5ef

View File

@ -42,8 +42,8 @@ class TopologySettings(object):
"""
if heartbeat_frequency < common.MIN_HEARTBEAT_INTERVAL:
raise ConfigurationError(
"heartbeatFrequencyMS cannot be less than %d" %
common.MIN_HEARTBEAT_INTERVAL * 1000)
"heartbeatFrequencyMS cannot be less than %d" % (
common.MIN_HEARTBEAT_INTERVAL * 1000,))
self._seeds = seeds or [('localhost', 27017)]
self._replica_set_name = replica_set_name