[common] use extractor subcategory for 'notfound=True'

This commit is contained in:
Mike Fährmann
2026-01-18 22:16:18 +01:00
parent 09635352d0
commit 366b0750a8
10 changed files with 15 additions and 13 deletions

View File

@@ -216,7 +216,9 @@ class Extractor():
if encoding:
response.encoding = encoding
return response
if notfound and code == 404:
if notfound is not None and code == 404:
if notfound is True:
notfound = self.__class__.subcategory
self.status |= exception.NotFoundError.code
raise exception.NotFoundError(notfound)