[New-bugs-announce] [issue38341] Add SMTPNotSupportedError in the exports of smtplib

Norman Denayer report at bugs.python.org
Tue Oct 1 16:50:46 EDT 2019


New submission from Norman Denayer <denayer.norman at gmail.com>:

Long story short:
smtplib.SMTPNotSupportedError seems the only exception not present in __all__ variable exposed by smtplib.py

Context:
I currently face an issue running mypy on one of my module:
...tools/email.py:46: error: Module has no attribute "SMTPNotSupportedError"
            except smtplib.SMTPNotSupportedError:

Digging into the context of this error, I note this exception is not exposed in the list __all__.

Regards,
Norman

----------
components: email
messages: 353712
nosy: Norman.Denayer, barry, r.david.murray
priority: normal
severity: normal
status: open
title: Add SMTPNotSupportedError in the exports of smtplib
type: enhancement
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38341>
_______________________________________


More information about the New-bugs-announce mailing list