diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2009-10-27 12:44:49 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2009-10-27 12:44:49 +0000 |
commit | 07632503acd1f1cb8354f43be2d73a64e5b3c2b6 (patch) | |
tree | 3cce03698ac6ce692b3cbafd9fccfcaa500f1d69 /src/lib | |
parent | 52627b488bda0357bb9e572ae169f900546d2447 (diff) | |
download | bcfg2-07632503acd1f1cb8354f43be2d73a64e5b3c2b6.tar.gz bcfg2-07632503acd1f1cb8354f43be2d73a64e5b3c2b6.tar.bz2 bcfg2-07632503acd1f1cb8354f43be2d73a64e5b3c2b6.zip |
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
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Proxy.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |