Skip to content

Commit

Permalink
Improve docstr
Browse files Browse the repository at this point in the history
Co-authored-by: Erik Montnemery <[email protected]>
  • Loading branch information
jbouwh and emontnemery committed Oct 10, 2023
1 parent 3427799 commit 9b0abdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homeassistant/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ class HomeAssistantError(Exception):
def __init__(self, *args: object, omit_stack_trace: bool = False) -> None:
"""Initialize Home Assistant Error.
When omit_stack_trace is set, a stack trace is logged to
the debug logging when available.
The optional omit_stack_trace can be set to indicate the error is expected,
and a stack trace can be omitted if the exception is logged.
"""
super().__init__(*args)
self._omit_stack_trace = omit_stack_trace
Expand Down

0 comments on commit 9b0abdb

Please sign in to comment.