mirror of
https://github.com/openzim/zimit.git
synced 2025-12-31 04:23:15 +00:00
Issue #499 - Only register cleanup if neither build or keep arguments have been passed.
This commit is contained in:
parent
611d2033f7
commit
4595d2a302
1 changed files with 2 additions and 1 deletions
|
|
@ -856,7 +856,8 @@ def run(raw_args):
|
||||||
logger.info("Exiting, invalid warc2zim params")
|
logger.info("Exiting, invalid warc2zim params")
|
||||||
return EXIT_CODE_WARC2ZIM_CHECK_FAILED
|
return EXIT_CODE_WARC2ZIM_CHECK_FAILED
|
||||||
|
|
||||||
if not known_args.keep:
|
# only trigger cleanup when the keep argument is passed without a custom build dir.
|
||||||
|
if not known_args.build and not known_args.keep:
|
||||||
atexit.register(cleanup)
|
atexit.register(cleanup)
|
||||||
|
|
||||||
# copy / download custom behaviors to one single folder and configure crawler
|
# copy / download custom behaviors to one single folder and configure crawler
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue