1
0
Fork 0

tweak log output for skipped methods

This commit is contained in:
Nick Sweeting 2020-08-14 13:12:50 -04:00
parent e835afcf70
commit 58e928520a
2 changed files with 2 additions and 1 deletions

View file

@ -58,6 +58,7 @@ archivebox/extractors/favicon.py
archivebox/extractors/git.py
archivebox/extractors/media.py
archivebox/extractors/pdf.py
archivebox/extractors/readability.py
archivebox/extractors/screenshot.py
archivebox/extractors/singlefile.py
archivebox/extractors/title.py

View file

@ -95,7 +95,7 @@ def archive_link(link: Link, overwrite: bool=False, methods: Optional[Iterable[s
stats[result.status] += 1
log_archive_method_finished(result)
else:
print(' > Skipping extractor: {}'.format(method_name))
print(' X {}'.format(method_name))
stats['skipped'] += 1
except Exception as e:
raise Exception('Exception in archive_methods.save_{}(Link(url={}))'.format(