diff options
| author | 2021-06-05 20:55:36 -0400 | |
|---|---|---|
| committer | 2021-06-05 20:55:36 -0400 | |
| commit | 8a644b7a06c504263a478d3681eed10b4161b5be (patch) | |
| tree | b3d668588e5c0be8c75467e50499f73ff9ec7c05 /gallery_dl/__init__.py | |
| parent | e7eb1f9779f2e223575ab23a6bc1abf2222e7d27 (diff) | |
New upstream version 1.17.5.upstream/1.17.5
Diffstat (limited to 'gallery_dl/__init__.py')
| -rw-r--r-- | gallery_dl/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gallery_dl/__init__.py b/gallery_dl/__init__.py index 5bf229a..8154afc 100644 --- a/gallery_dl/__init__.py +++ b/gallery_dl/__init__.py @@ -186,7 +186,7 @@ def main(): elif args.clear_cache: from . import cache log = logging.getLogger("cache") - cnt = cache.clear() + cnt = cache.clear(args.clear_cache) if cnt is None: log.error("Database file not available") @@ -249,6 +249,8 @@ def main(): retval |= jobtype(url.value).run() else: retval |= jobtype(url).run() + except exception.TerminateExtraction: + pass except exception.NoExtractorError: log.error("No suitable extractor found for '%s'", url) retval |= 64 |
