Add ConnectionError handling
This commit is contained in:
parent
8569fd2128
commit
3f3fcc241c
|
@ -1,3 +1,6 @@
|
||||||
|
1.0.11:
|
||||||
|
- Treat connection related errors as ambiguous (e.g. "Connection reset by peer").
|
||||||
|
|
||||||
1.0.10:
|
1.0.10:
|
||||||
- First pypi-free release (they removed everything between 1.0.6 and 1.0.9).
|
- First pypi-free release (they removed everything between 1.0.6 and 1.0.9).
|
||||||
- Removing unnecessary files from the source tarball.
|
- Removing unnecessary files from the source tarball.
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -57,7 +57,7 @@ class BuildPyCommand(build_py):
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='py3-validate-email',
|
name='py3-validate-email',
|
||||||
version='1.0.10',
|
version='1.0.11',
|
||||||
packages=find_packages(exclude=['tests']),
|
packages=find_packages(exclude=['tests']),
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'dnspython~=2.2', 'idna~=3.3', 'filelock~=3.7',
|
'dnspython~=2.2', 'idna~=3.3', 'filelock~=3.7',
|
||||||
|
|
|
@ -175,7 +175,7 @@ class _SMTPChecker(SMTP):
|
||||||
return False
|
return False
|
||||||
except SMTPResponseException as exc:
|
except SMTPResponseException as exc:
|
||||||
return self._handle_smtpresponseexception(exc=exc)
|
return self._handle_smtpresponseexception(exc=exc)
|
||||||
except TLSNegotiationError as exc:
|
except (TLSNegotiationError, ConnectionError) as exc:
|
||||||
self.__temporary_errors[self._host] = SMTPMessage(
|
self.__temporary_errors[self._host] = SMTPMessage(
|
||||||
command=self.__command, code=-1, text=str(exc),
|
command=self.__command, code=-1, text=str(exc),
|
||||||
exceptions=exc.args)
|
exceptions=exc.args)
|
||||||
|
|
Loading…
Reference in New Issue