Skip to content

Commit

Permalink
sys_capture_exception to capture_exception (#4095)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdegat01 committed Jan 12, 2023
1 parent fed4a05 commit 0991f52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion supervisor/addons/addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
from ..utils import check_port
from ..utils.apparmor import adjust_profile
from ..utils.json import read_json_file, write_json_file
from ..utils.sentry import capture_exception
from .const import (
WATCHDOG_MAX_ATTEMPTS,
WATCHDOG_RETRY_SECONDS,
Expand Down Expand Up @@ -151,7 +152,7 @@ async def restart_after_problem(addon: Addon, state: ContainerState):
_LOGGER.error(
"Watchdog restart of addon %s failed!", addon.name
)
addon.sys_capture_exception(err)
capture_exception(err)
else:
break

Expand Down

0 comments on commit 0991f52

Please sign in to comment.