From 2a817af4fe41289fa705bdc5ee61372333f43996 Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Mon, 27 Nov 2023 17:57:01 -0500 Subject: New upstream version 1.26.3. --- gallery_dl/exception.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gallery_dl/exception.py') diff --git a/gallery_dl/exception.py b/gallery_dl/exception.py index ef190f2..ee183fc 100644 --- a/gallery_dl/exception.py +++ b/gallery_dl/exception.py @@ -21,6 +21,7 @@ Exception | +-- FilenameFormatError | +-- DirectoryFormatError +-- FilterError + +-- InputFileError +-- NoExtractorError +-- StopExtraction +-- TerminateExtraction @@ -99,6 +100,15 @@ class FilterError(GalleryDLException): code = 32 +class InputFileError(GalleryDLException): + """Error when parsing input file""" + code = 32 + + def __init__(self, message, *args): + GalleryDLException.__init__( + self, message % args if args else message) + + class NoExtractorError(GalleryDLException): """No extractor can handle the given URL""" code = 64 -- cgit v1.2.3