Handling no host error in text importer.

This commit is contained in:
Samuel Clay 2018-07-16 10:56:33 -04:00
parent 4290b57370
commit 3b3ea98afd

View file

@ -1,4 +1,5 @@
import requests
import urllib3
import zlib
from requests.packages.urllib3.exceptions import LocationParseError
from socket import error as SocketError
@ -194,6 +195,7 @@ class TextImporter:
requests.models.InvalidURL,
requests.models.ChunkedEncodingError,
requests.models.ContentDecodingError,
urllib3.exceptions.LocationValueError,
LocationParseError, OpenSSLError, PyAsn1Error), e:
logging.user(self.request, "~SN~FRFailed~FY to fetch ~FGoriginal text~FY: %s" % e)
return