Skip to content
This repository has been archived by the owner on May 9, 2020. It is now read-only.

AttributeError: 'ConnectionError' object has no attribute 'message' #86

Open
mikegarts opened this issue Dec 1, 2019 · 1 comment
Open

Comments

@mikegarts
Copy link

This is raised from api.py:request line 207 (or 204 in 0.3 release)
Since ConnectionError has no 'message' attribute it causes an exception inside the except clause.
Python3.6, pychef==0.3.
Here is the relevant code:

        try:
            response = self._request(method, self.url + path, data, dict(
                (k.capitalize(), v) for k, v in six.iteritems(request_headers)))
        except requests.ConnectionError as e:
            raise ChefServerError(e.message)
@dstarod
Copy link

dstarod commented Mar 31, 2020

Got the same error. Pls, fix it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants