sys_capture_exception to capture_exception (#4095)

This commit is contained in:
Mike Degatano 2023-01-12 11:47:08 -05:00 committed by GitHub
parent fed4a05003
commit 0991f52100
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,6 +73,7 @@ from ..jobs.decorator import Job
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,
@ -151,7 +152,7 @@ class Addon(AddonModel):
_LOGGER.error(
"Watchdog restart of addon %s failed!", addon.name
)
addon.sys_capture_exception(err)
capture_exception(err)
else:
break