Skip to content

Commit 4c39f1a

Browse files
committed
PYTHON-903 - Can't use "as" in PyMongo 2.x.
1 parent 5c98b1e commit 4c39f1a

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
@@ -356,7 +356,7 @@ def monitor(self):
356356
self.rsc.refresh()
357357
finally:
358358
self.refreshed.set()
359-
except (AutoReconnect, OperationFailure) as exc:
359+
except (AutoReconnect, OperationFailure), exc:
360360
# Set is unreachable, or we experienced a transient auth
361361
# failure while a secondary is replicating credentials.
362362
pass

0 commit comments

Comments
 (0)