From 99447197925290f70ee97fc6ec66b31cd024500e Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Thu, 5 Dec 2024 22:08:43 -0500 Subject: [PATCH] Make ClientException stringify itself like RemoteException --- lib/nntp/tiny/client.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/nntp/tiny/client.py b/lib/nntp/tiny/client.py index 12a4b14..3730e31 100644 --- a/lib/nntp/tiny/client.py +++ b/lib/nntp/tiny/client.py @@ -21,7 +21,11 @@ from nntp.tiny.remote import ( ) class ClientException(Exception): - pass + def __init__(self, response: Response): + self.response = response + + def __str__(self): + return str(self.response) class ClientEOFException(ClientException): def __str__(self):