aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/exception.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2023-11-27 17:57:07 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2023-11-27 17:57:07 -0500
commit34eea9832b1b50aa9214481363cb3ca5c81bb2d8 (patch)
treedbf7dc5cc36fbad64ac83e38d0ec0fec90f9f109 /gallery_dl/exception.py
parentecd8aa4d85bd87ed65abe0f22ba058bda95d699c (diff)
parent2a817af4fe41289fa705bdc5ee61372333f43996 (diff)
Update upstream source from tag 'upstream/1.26.3'
Update to upstream version '1.26.3' with Debian dir f685c0316a7fc7f226907bb4cb034eab193d2945
Diffstat (limited to 'gallery_dl/exception.py')
-rw-r--r--gallery_dl/exception.py10
1 files changed, 10 insertions, 0 deletions
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