aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/actions.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2026-01-06 04:25:00 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2026-01-06 04:25:00 -0500
commit77589574c157fbf651dd251079cd02f6e282e623 (patch)
tree3765f27e6b5fe6c5050fa952347c686021718606 /gallery_dl/actions.py
parentd4b96bc46d493f54e12c06d98115fccaab1b7ed2 (diff)
parent385e4bfb1e426d23417ac788a6f44d639e226c89 (diff)
Update upstream source from tag 'upstream/1.31.2'
Update to upstream version '1.31.2' with Debian dir 4ebe0ca706fc53eceb778881b680572ca5a0231c
Diffstat (limited to 'gallery_dl/actions.py')
-rw-r--r--gallery_dl/actions.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/gallery_dl/actions.py b/gallery_dl/actions.py
index 5d2f645..1e4626a 100644
--- a/gallery_dl/actions.py
+++ b/gallery_dl/actions.py
@@ -257,15 +257,21 @@ def action_raise(opts):
def action_abort(opts):
- return None, util.raises(exception.StopExtraction)
+ def _abort(_):
+ raise exception.StopExtraction(opts or None)
+ return None, _abort
def action_terminate(opts):
- return None, util.raises(exception.TerminateExtraction)
+ def _terminate(_):
+ raise exception.TerminateExtraction(opts)
+ return None, _terminate
def action_restart(opts):
- return None, util.raises(exception.RestartExtraction)
+ def _restart(_):
+ raise exception.RestartExtraction(opts)
+ return None, _restart
def action_exit(opts):
@@ -274,7 +280,7 @@ def action_exit(opts):
except ValueError:
pass
- def _exit(args):
+ def _exit(_):
raise SystemExit(opts)
return None, _exit