Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderegg committed Nov 19, 2024
1 parent 9a02ad3 commit 85875e8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ async def update_scheduler_data_label(scheduler_data: SchedulerData) -> None:
},
)
except GenericDockerError as e:
if e.error_context()["original_exception"].status == status.HTTP_404_NOT_FOUND:
if e.original_exception.status == status.HTTP_404_NOT_FOUND:
log.info(
"Skipped labels update for service '%s' which could not be found.",
scheduler_data.service_name,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
from typing import Any

from aiodocker import DockerError

from ...core.errors import DirectorError


Expand All @@ -6,6 +10,10 @@ class DynamicSidecarError(DirectorError):


class GenericDockerError(DynamicSidecarError):
def __init__(self, original_exception: DockerError, **ctx: Any) -> None:
super().__init__(original_exception=original_exception, **ctx)
self.original_exception = original_exception

msg_template: str = "Unexpected error using docker: {msg}"


Expand Down

0 comments on commit 85875e8

Please sign in to comment.