From 515e7a0bc78d65147cc5100ae045e3db053116a7 Mon Sep 17 00:00:00 2001 From: Andrew Hutchings Date: Fri, 25 Jan 2013 12:31:39 -0800 Subject: [PATCH] Fix endpoint error handling Fixes bug #1105410 Change-Id: I890d130328720912f936f5590ece82190c0039c0 --- libraclient/client.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraclient/client.py b/libraclient/client.py index a64087a..655c225 100644 --- a/libraclient/client.py +++ b/libraclient/client.py @@ -47,6 +47,9 @@ def main(): method(args) except exceptions.ClientException as exc: print exc - print exc.details + if exc.details: + print exc.details + except exceptions.EndpointNotFound: + return 2 return 0