We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It's expecting e.message to exist on any requests exception, but ConnectionError does not have that attribute:
e.message
ConnectionError
def _do_request(self, method, path, params=None, data=None): """Query Marathon server.""" headers = { 'Content-Type': 'application/json', 'Accept': 'application/json'} response = None servers = list(self.servers) while servers and response is None: server = servers.pop(0) url = ''.join([server.rstrip('/'), path]) try: response = requests.request( method, url, params=params, data=data, headers=headers, auth=self.auth, timeout=self.timeout) marathon.log.info('Got response from %s', server) except requests.exceptions.RequestException as e: marathon.log.error( > 'Error while calling %s: %s', url, e.message) E AttributeError: 'ConnectionError' object has no attribute 'message'
The text was updated successfully, but these errors were encountered:
Apparently this is a py3k issue. Exceptions no longer globally have a message attribute.
message
Sorry, something went wrong.
No branches or pull requests
It's expecting
e.message
to exist on any requests exception, butConnectionError
does not have that attribute:The text was updated successfully, but these errors were encountered: