PYTHON-732 Handle network errors when adding existing credentials to sockets.
import style