From 293c2ab1cfc471ee7325eb58769d15e94e48debb Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Thu, 5 Dec 2024 18:30:52 -0500 Subject: [PATCH] Make RemoteException explicitly take Response argument --- lib/nntp/tiny/remote.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/nntp/tiny/remote.py b/lib/nntp/tiny/remote.py index 7cba0f5..f4cb0ae 100644 --- a/lib/nntp/tiny/remote.py +++ b/lib/nntp/tiny/remote.py @@ -1,5 +1,11 @@ +from nntp.tiny.response import Response + class RemoteException(Exception): - pass + def __init__(self, response: Response): + self.response = response + + def __str__(self): + return str(self.response) class RemoteNewsgroup(): __slots__ = 'name',