Catch IOError in _send_request
Catch IOError in _send_request

httplib2 can raise a bare socket.error in _send_request, which handles only
AttributeError. This change catches all IOError subclasses, tells logging to
include exception information and moves logging code outside of the try/except
block to avoid any possibility of an exception in a log handler being caught by
mistake.

shasha79/pysolr,django-haystack/pysolr,mylanium/pysolr,upayavira/pysolr,rokaka/pysolr,10clouds/pysolr,mbeacom/pysolr,mylanium/pysolr,mbeacom/pysolr,10clouds/pysolr,django-searchstack/skisolr,django-searchstack/skisolr,CANTUS-Project/pysolr-tornado,CANTUS-Project/pysolr-tornado,upayavira/pysolr,django-haystack/pysolr,shasha79/pysolr,toastdriven/pysolr,swistakm/pysolr,toastdriven/pysolr,rokaka/pysolr,swistakm/pysolr