From 6c1539bbf7046e5e3d1f20725baa1ae48d1b7ce3 Mon Sep 17 00:00:00 2001 From: Marius Gedminas Date: Fri, 5 Feb 2016 08:45:52 +0200 Subject: Support pickling hypothetical subclasses --- paramiko/ssh_exception.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paramiko/ssh_exception.py b/paramiko/ssh_exception.py index fea3146a..ed36a952 100644 --- a/paramiko/ssh_exception.py +++ b/paramiko/ssh_exception.py @@ -178,4 +178,4 @@ class NoValidConnectionsError(socket.error): self.errors = errors def __reduce__(self): - return (NoValidConnectionsError, (self.errors, )) + return (self.__class__, (self.errors, )) -- cgit v1.2.3