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

Class NNTPError

tools/python-3.11.9-amd64/Lib/nntplib.py:99–106  ·  view source on GitHub ↗

Base class for all nntplib exceptions

Source from the content-addressed store, hash-verified

97
98# Exceptions raised when an error or invalid response is received
99class NNTPError(Exception):
100 """Base class for all nntplib exceptions"""
101 def __init__(self, *args):
102 Exception.__init__(self, *args)
103 try:
104 self.response = args[0]
105 except IndexError:
106 self.response = 'No response given'
107
108class NNTPReplyError(NNTPError):
109 """Unexpected [123]xx reply"""

Callers 1

starttlsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected