New issue
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
media player Kodi: handle TransportError exceptions when calling JSONRPC API methods #8047
Conversation
_LOGGER.info("TransportError trying to add playlist", | ||
self.entity_id) | ||
_LOGGER.debug("TransportError trying to add playlist", | ||
self.entity_id, exc_info = True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unexpected spaces around keyword / parameter equals
_LOGGER.info("TransportError trying to run API method %s.%s(%s)", | ||
self.entity_id, method, kwargs) | ||
_LOGGER.debug("TransportError trying to run API method %s.%s(%s)", | ||
self.entity_id, method, kwargs, exc_info=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use only one logging call -> warning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done (removed exc_info in debug level)
_LOGGER.info("TransportError trying to add playlist to %s", | ||
self.entity_id) | ||
_LOGGER.debug("TransportError trying to add playlist to %s", | ||
self.entity_id, exc_info=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use only one logging call -> warning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done (removed exc_info in debug level)
Hi @pvizeli, the Travis CI build timed out ¿?, could you restart it to try again? |
Description:
Handle TransportError exceptions when calling JSONRPC API services. This exception raises when Kodi is not present or there is a problem in the websocket connection.
Example entry for
configuration.yaml
(if applicable):