dotcloud/docker-py — pull request #107 by mpetazzoni (2013-11-20 22:44:48+00:00)
Title: Correctly pass the response parameter to the HTTPError constructor

The `requests.exceptions.HTTPError` constructor takes the `response` parameters from its `kwargs`, not from the positional arguments. To make sure `self.response` is correctly set and avoid TypeErrors/ValueErrors when an `APIError` is raised, we need to pass `response` as a named parameter.