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

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

Description

@mikegarts

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions