Skip to content

Commit 594856d

Browse files
committed
Catch an exception that actually exists...
1 parent 0241869 commit 594856d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymongo/mongo_replica_set_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1235,7 +1235,7 @@ def _ensure_connected(self, sync=False):
12351235
self.__monitor.start()
12361236
# Minor race condition. It's possible that two (or more)
12371237
# threads could call monitor.start() consecutively. Just pass.
1238-
except RunTimeError:
1238+
except RuntimeError:
12391239
pass
12401240
if sync:
12411241
rs_state = self.__rs_state

0 commit comments

Comments
 (0)