diff --git a/dockstat.py b/dockstat.py index e5a3628..d5e82ba 100644 --- a/dockstat.py +++ b/dockstat.py @@ -37,7 +37,10 @@ class HTTPHandler(MetricsHandler): # type: ignore[misc] Handle GET requests """ if self.path == '/metrics': - self._metrics() + try: + self._metrics() + except docker.errors.NotFound: + pass if self.path == '/healthcheck': if not healthy():