Fix endpoint error handling

Fixes bug #1105410

Change-Id: I890d130328720912f936f5590ece82190c0039c0
This commit is contained in:
Andrew Hutchings
2013-01-25 12:31:39 -08:00
parent a205a625fc
commit 515e7a0bc7

View File

@@ -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