From 07632503acd1f1cb8354f43be2d73a64e5b3c2b6 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Tue, 27 Oct 2009 12:44:49 +0000 Subject: Proxy: handle case where err has no errno attribute (Resolves Ticket #769) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5508 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Proxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Proxy.py b/src/lib/Proxy.py index 8e8917442..ac083dfa6 100644 --- a/src/lib/Proxy.py +++ b/src/lib/Proxy.py @@ -59,7 +59,7 @@ class RetryMethod(_Method): except xmlrpclib.Fault: raise except socket.error, err: - if err.errno == 336265218: + if hasattr(err, 'errno') and err.errno == 336265218: self.log.error("SSL Key error") break if retry == 3: -- cgit v1.2.3-1-g7c22