summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2009-10-24 15:09:02 +0000
committerNarayan Desai <desai@mcs.anl.gov>2009-10-24 15:09:02 +0000
commit48d42e7350487b62e1f2a924cab9f1d15444f327 (patch)
treef1e023f1af1e8e519b3f5e9997d376b26d806de3 /src/lib
parentbd32e5cc5791bec81e5c54f659f532caaa464138 (diff)
downloadbcfg2-48d42e7350487b62e1f2a924cab9f1d15444f327.tar.gz
bcfg2-48d42e7350487b62e1f2a924cab9f1d15444f327.tar.bz2
bcfg2-48d42e7350487b62e1f2a924cab9f1d15444f327.zip
Proxy: handle case where server disallows connection with an error message and graceful exit (Resolves Ticket #686)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5494 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Proxy.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/Proxy.py b/src/lib/Proxy.py
index 2047e3b97..b560eac74 100644
--- a/src/lib/Proxy.py
+++ b/src/lib/Proxy.py
@@ -66,6 +66,9 @@ class RetryMethod(_Method):
self.log.error("Got unallowed commonName %s from server" \
% ce.commonName)
break
+ except KeyError:
+ self.log.error("Server disallowed connection")
+ break
except:
self.log.error("Unknown failure", exc_info=1)
break