Sender address refused. In addition to the attributes set by on all SMTPResponseException exceptions, this sets 'sender' to the string that the SMTP refused.
| 100 | self.args = (code, msg) |
| 101 | |
| 102 | class SMTPSenderRefused(SMTPResponseException): |
| 103 | """Sender address refused. |
| 104 | |
| 105 | In addition to the attributes set by on all SMTPResponseException |
| 106 | exceptions, this sets 'sender' to the string that the SMTP refused. |
| 107 | """ |
| 108 | |
| 109 | def __init__(self, code, msg, sender): |
| 110 | self.smtp_code = code |
| 111 | self.smtp_error = msg |
| 112 | self.sender = sender |
| 113 | self.args = (code, msg, sender) |
| 114 | |
| 115 | class SMTPRecipientsRefused(SMTPException): |
| 116 | """All recipient addresses refused. |
no outgoing calls
no test coverage detected
searching dependent graphs…