Skip to content

zoneminder: fix incorrect use of logging.exception.#7675

Merged
fabaff merged 1 commit into
home-assistant:devfrom
tobygray:zoneminder-incorrect-logging-call
May 21, 2017
Merged

zoneminder: fix incorrect use of logging.exception.#7675
fabaff merged 1 commit into
home-assistant:devfrom
tobygray:zoneminder-incorrect-logging-call

Conversation

@tobygray
Copy link
Copy Markdown
Contributor

Description:

Prior to this change the zoneminder component was attempting to
use logging.exception outside of exception handling code. This
would lead to the traceback module throwing an exception when
trying to work out the traceback for the exception.

This fixes the issue by changing the exception call into a
plain error logging call.

Related issue (if applicable): fixes #7674

Pull request in home-assistant.github.io with documentation (if applicable): No documentation change needed.

Example entry for configuration.yaml (if applicable):

No configuration change needed.

Checklist:

If the code communicates with devices, web services, or third-party tools:

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass
  • New dependencies have been added to the REQUIREMENTS variable ([example][ex-requir]).
  • New dependencies are only imported inside functions that use them ([example][ex-import]).
  • New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
  • New files were added to .coveragerc.

Prior to this change the zoneminder component was attempting to
use logging.exception outside of exception handling code. This
would lead to the traceback module throwing an exception when
trying to work out the traceback for the exception.

This fixes the issue by changing the exception call into a
plain error logging call.
Copy link
Copy Markdown
Member

@fabaff fabaff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 🐦

@fabaff fabaff merged commit 24b7fd3 into home-assistant:dev May 21, 2017
@tobygray tobygray deleted the zoneminder-incorrect-logging-call branch May 27, 2017 15:39
tobygray added a commit to tobygray/home-assistant that referenced this pull request May 27, 2017
This reverts the file permission changes introduced in:
* home-assistant#7673
* home-assistant#7675
@balloob balloob mentioned this pull request Jun 2, 2017
@home-assistant home-assistant locked and limited conversation to collaborators Sep 4, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Zoneminder attempts to call logging.exception with no exception

4 participants