Make ClientException stringify itself like RemoteException

This commit is contained in:
XANTRONIX Development 2024-12-05 22:08:43 -05:00
parent dfe94c61e4
commit 9944719792

View file

@ -21,7 +21,11 @@ from nntp.tiny.remote import (
) )
class ClientException(Exception): class ClientException(Exception):
pass def __init__(self, response: Response):
self.response = response
def __str__(self):
return str(self.response)
class ClientEOFException(ClientException): class ClientEOFException(ClientException):
def __str__(self): def __str__(self):