Skip to content

Commit c80a69b

Browse files
committed
Remove CodeNotary related exceptions and handling
Remove CodeNotary related exceptions and handling from the Docker interface.
1 parent bf3ff95 commit c80a69b

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

supervisor/docker/interface.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,12 @@
3131
)
3232
from ..coresys import CoreSys
3333
from ..exceptions import (
34-
CodeNotaryError,
35-
CodeNotaryUntrusted,
3634
DockerAPIError,
3735
DockerError,
3836
DockerJobError,
3937
DockerLogOutOfOrder,
4038
DockerNotFound,
4139
DockerRequestError,
42-
DockerTrustError,
4340
)
4441
from ..jobs import SupervisorJob
4542
from ..jobs.const import JOB_GROUP_DOCKER_INTERFACE, JobConcurrency
@@ -452,16 +449,6 @@ async def process_pull_image_log(reference: PullLogEntry) -> None:
452449
raise DockerError(
453450
f"Unknown error with {image}:{version!s} -> {err!s}", _LOGGER.error
454451
) from err
455-
except CodeNotaryUntrusted as err:
456-
raise DockerTrustError(
457-
f"Pulled image {image}:{version!s} failed on content-trust verification!",
458-
_LOGGER.critical,
459-
) from err
460-
except CodeNotaryError as err:
461-
raise DockerTrustError(
462-
f"Error happened on Content-Trust check for {image}:{version!s}: {err!s}",
463-
_LOGGER.error,
464-
) from err
465452
finally:
466453
if listener:
467454
self.sys_bus.remove_listener(listener)

supervisor/exceptions.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -577,21 +577,6 @@ class PwnedConnectivityError(PwnedError):
577577
"""Connectivity errors while checking pwned passwords."""
578578

579579

580-
# util/codenotary
581-
582-
583-
class CodeNotaryError(HassioError):
584-
"""Error general with CodeNotary."""
585-
586-
587-
class CodeNotaryUntrusted(CodeNotaryError):
588-
"""Error on untrusted content."""
589-
590-
591-
class CodeNotaryBackendError(CodeNotaryError):
592-
"""CodeNotary backend error happening."""
593-
594-
595580
# util/whoami
596581

597582

0 commit comments

Comments
 (0)