Fix missing container id, drop custom exception

ahab_hardkill
Tyler Goodlet 2022-07-07 17:10:06 -04:00
parent f356fb0a68
commit 019867b413
1 changed files with 1 additions and 5 deletions

View File

@ -51,10 +51,6 @@ class DockerNotStarted(Exception):
'Prolly you dint start da daemon bruh' 'Prolly you dint start da daemon bruh'
class ContainerError(RuntimeError):
'Error reported via app-container logging level'
@acm @acm
async def open_docker( async def open_docker(
url: Optional[str] = None, url: Optional[str] = None,
@ -189,7 +185,7 @@ class Container:
def hard_kill(self, start: float) -> None: def hard_kill(self, start: float) -> None:
delay = time.time() - start delay = time.time() - start
log.error( log.error(
f'Failed to kill container {cid} after {delay}s\n' f'Failed to kill container {self.cntr.id} after {delay}s\n'
'sending SIGKILL..' 'sending SIGKILL..'
) )
# get out the big guns, bc apparently marketstore # get out the big guns, bc apparently marketstore