summaryrefslogtreecommitdiffstats
path: root/gallery_dl/exception.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2021-06-05 20:55:36 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2021-06-05 20:55:36 -0400
commit8a644b7a06c504263a478d3681eed10b4161b5be (patch)
treeb3d668588e5c0be8c75467e50499f73ff9ec7c05 /gallery_dl/exception.py
parente7eb1f9779f2e223575ab23a6bc1abf2222e7d27 (diff)
New upstream version 1.17.5.upstream/1.17.5
Diffstat (limited to 'gallery_dl/exception.py')
-rw-r--r--gallery_dl/exception.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/gallery_dl/exception.py b/gallery_dl/exception.py
index f553d41..0433dc9 100644
--- a/gallery_dl/exception.py
+++ b/gallery_dl/exception.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
-# Copyright 2015-2019 Mike Fährmann
+# Copyright 2015-2021 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
@@ -23,6 +23,7 @@ Exception
+-- FilterError
+-- NoExtractorError
+-- StopExtraction
+ +-- TerminateExtraction
"""
@@ -109,3 +110,8 @@ class StopExtraction(GalleryDLException):
GalleryDLException.__init__(self)
self.message = message % args if args else message
self.code = 1 if message else 0
+
+
+class TerminateExtraction(GalleryDLException):
+ """Terminate data extraction"""
+ code = 0