MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _rset

Method _rset

tools/python-3.11.9-amd64/Lib/smtplib.py:511–521  ·  view source on GitHub ↗

Internal 'rset' command which ignores any SMTPServerDisconnected error. Used internally in the library, since the server disconnected error should appear to the application when the *next* command is issued, if we are doing an internal "safety" reset.

(self)

Source from the content-addressed store, hash-verified

509 return self.docmd("rset")
510
511 def _rset(self):
512 """Internal 'rset' command which ignores any SMTPServerDisconnected error.
513
514 Used internally in the library, since the server disconnected error
515 should appear to the application when the *next* command is issued, if
516 we are doing an internal "safety" reset.
517 """
518 try:
519 self.rset()
520 except SMTPServerDisconnected:
521 pass
522
523 def noop(self):
524 """SMTP 'noop' command -- doesn't do anything :>"""

Callers 1

sendmailMethod · 0.95

Calls 1

rsetMethod · 0.95

Tested by

no test coverage detected