diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2006-02-27 20:07:09 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2006-02-27 20:07:09 +0000 |
commit | 9e19b48f3213af71b63432800cc66fedeb4c000d (patch) | |
tree | 816737e9e38cedf45eb324e36407b10856339f7d /src/lib/Client/Proxy.py | |
parent | fc9881381c8bb4d6e729532de2fe030b3ff418b3 (diff) | |
download | bcfg2-9e19b48f3213af71b63432800cc66fedeb4c000d.tar.gz bcfg2-9e19b48f3213af71b63432800cc66fedeb4c000d.tar.bz2 bcfg2-9e19b48f3213af71b63432800cc66fedeb4c000d.zip |
Improve error handling for server problems
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1773 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client/Proxy.py')
-rw-r--r-- | src/lib/Client/Proxy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Client/Proxy.py b/src/lib/Client/Proxy.py index a58f8bd53..b019e5656 100644 --- a/src/lib/Client/Proxy.py +++ b/src/lib/Client/Proxy.py @@ -52,7 +52,7 @@ class SafeProxy: time.sleep(0.5) except: break - self.log.error("%s failed:\nCould not connect to %s" % (method_name, self.component)) + raise xmlrpclib.Fault(20, 'Server Failure') def __get_location(self, name): '''Perform component location lookups if needed''' |