]> git.ipfire.org Git - pbs.git/commitdiff
registry: Respond with the correct code when manifest was not found
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 10 Feb 2025 10:49:32 +0000 (10:49 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 10 Feb 2025 10:49:32 +0000 (10:49 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/web/registry.py

index df93b3bf2dcde8dfa55f4685c91b9deb89599e70..a87b873c66007e173f3a088f82997a54d424ea0f 100644 (file)
@@ -206,7 +206,7 @@ class ManifestHandler(BaseHandler):
                # Fetch the blob
                blob = await self.get_blob(distro, digest)
                if not blob:
-                       raise BlobUnknownError
+                       raise ManifestUnknownError
 
                # Set Content-Type
                self.set_header("Content-Type", "application/vnd.oci.image.manifest.v1+json")