diff options
author | Marius Gedminas <marius@gedmin.as> | 2016-02-04 19:56:51 +0200 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2016-04-24 13:56:42 -0700 |
commit | e1d09fe4b0f4ab8eee5e923dd63ae08155334e80 (patch) | |
tree | 5322746c8c96d9098e76ea4232d36bbefe42c2f9 /paramiko/ssh_exception.py | |
parent | f15b383e4499e85689bfcc83dc942f0b6c898264 (diff) | |
download | paramiko-e1d09fe4b0f4ab8eee5e923dd63ae08155334e80.tar.gz |
Make NoValidConnectionsError picklable correctly
Fixes #617.
Diffstat (limited to 'paramiko/ssh_exception.py')
-rw-r--r-- | paramiko/ssh_exception.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/paramiko/ssh_exception.py b/paramiko/ssh_exception.py index 016a411e..b61000ae 100644 --- a/paramiko/ssh_exception.py +++ b/paramiko/ssh_exception.py @@ -173,3 +173,6 @@ class NoValidConnectionsError(socket.error): msg.format(addrs[0][1], body, tail) ) self.errors = errors + + def __reduce__(self): + return (NoValidConnectionsError, (self.errors, )) |