mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-04-13 09:42:01 +00:00
Handling no host error in text importer.
This commit is contained in:
parent
4290b57370
commit
3b3ea98afd
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue