summaryrefslogtreecommitdiffstats
path: root/gallery_dl/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/__init__.py')
-rw-r--r--gallery_dl/__init__.py4
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