From: Michael Tremer Date: Mon, 10 Feb 2025 10:50:52 +0000 (+0000) Subject: registry: Don't fail if we could not find a file inside an image X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2d3bb0ca12a34a544792fe14c24acfa86db57387;p=pbs.git registry: Don't fail if we could not find a file inside an image Signed-off-by: Michael Tremer --- diff --git a/src/buildservice/registry.py b/src/buildservice/registry.py index 1b920ff4..5bdcd464 100644 --- a/src/buildservice/registry.py +++ b/src/buildservice/registry.py @@ -81,4 +81,7 @@ class OCIImage(object): f = await self.open() # Extract the blob - return f.extractfile(path) + try: + return f.extractfile(path) + except KeyError: + pass