Skip to content

Fix: Log exceptions thrown by signal callbacks#20284

Merged
balloob merged 1 commit intohome-assistant:devfrom
andrewsayre:fix_dispatcher_log_exceptions
Jan 21, 2019
Merged

Fix: Log exceptions thrown by signal callbacks#20284
balloob merged 1 commit intohome-assistant:devfrom
andrewsayre:fix_dispatcher_log_exceptions

Conversation

@andrewsayre
Copy link
Copy Markdown
Member

Description:

Fixed a bug introduced by #20015 where it was not properly detecting coroutine functions wrapped inside a functools.partial. This resulted in catch_log_exception wrapping incorrectly, which downstream results in coroutine not being awaited.

This also improved worked done in #20119 so that async_add_job now recursively checks for partials to bring it in parity with the work done in catch_log_exception.

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.

@andrewsayre andrewsayre requested a review from a team as a code owner January 20, 2019 23:36
@homeassistant homeassistant added core small-pr PRs with less than 30 lines. cla-signed labels Jan 20, 2019
@ghost ghost added the in progress label Jan 20, 2019
@andrewsayre andrewsayre changed the title Added recursive detection of functools.partial. Fix: Log exceptions thrown by signal callbacks Jan 20, 2019
@balloob balloob merged commit 5c208da into home-assistant:dev Jan 21, 2019
@ghost ghost removed the in progress label Jan 21, 2019
@andrewsayre andrewsayre deleted the fix_dispatcher_log_exceptions branch January 21, 2019 15:28
@balloob balloob mentioned this pull request Feb 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed core small-pr PRs with less than 30 lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants