def reload(self): # refresh no matter what try: with podman.ApiConnection(podman_url) as podman_api: self.inspection = podman.containers.inspect(podman_api, self.name) except podman.errors.InternalServerError: logger.error(f"error 500 with {self.name}")
async def co_run(self, idle, lingering): try: await self._co_run(idle, lingering) except Exception as exc: logger.error( f"unexpected error {type(exc)} " f"when dealing with {self.name} - ignored\n...exception={exc}")
def reload(self): # refresh no matter what try: with podman.PodmanClient(base_url=PODMAN_URL) as podman_api: self.inspection = podman_api.containers.get(self.name).attrs except podman.errors.InternalServerError: logger.error(f"error 500 with {self.name}") self.inspection = None