raise NetworkError when catch a pycurl.error
PEP 8 fix, add a blank line.