Changed docstring format
Catch connection errors