boto/boto — Issue #509: ec2.elb.get_all_load_balancers() and load_balancer_names
Author: gtaylor
Created: 2012-01-21 21:04:11+00:00
State: open
Labels: EC2

ec2.elb.get_all_load_balancers() currently returns an unhandled BotoServerError with the XML dump, instead of an ELB exception, if you pass an name that doesn't exist to load_balancer_names:

```
>>> conn.get_all_load_balancers(load_balancer_names=['webapp-balancer2'])
Traceback (most recent call last):
File "", line 1, in
File "/home/gtaylor/workspace/coursebook/bundled/boto/ec2/elb/__init__.py", line 126, in get_all_load_balancers
return self.get_list('DescribeLoadBalancers', params,
File "/home/gtaylor/workspace/coursebook/bundled/boto/connection.py", line 876, in get_list
raise self.ResponseError(response.status, response.reason, body)
BotoServerError: BotoServerError: 400 Bad Request

Sender
LoadBalancerNotFound
Cannot find Load Balancer webapp-balancer2

093f80d0-4473-11e1-9234-edce8ec08e2d

```