[imagehosts] add and use 'not_found()' method

This commit is contained in:
Mike Fährmann
2025-10-29 11:52:53 +01:00
parent 62e9d75611
commit 20bca3f2e4
2 changed files with 11 additions and 7 deletions

View File

@@ -5,6 +5,7 @@
# published by the Free Software Foundation.
from gallery_dl.extractor import imagehosts
from gallery_dl import exception
__tests__ = (
@@ -46,7 +47,7 @@ __tests__ = (
"#comment" : "'Image not found' (#8415)",
"#category": ("imagehost", "imagetwist", "image"),
"#class" : imagehosts.ImagetwistImageExtractor,
"#count" : 0,
"#exception": exception.NotFoundError,
},
{