mirror of
https://github.com/fhamborg/news-please.git
synced 2021-09-19 22:26:00 +03:00
Merge pull request #200 from mood-mapping-muppets/allow-none-fully-extracted-log
Check for when log_pathname_fully_extracted_warcs is None and don't log in this case
This commit is contained in:
@@ -89,8 +89,9 @@ class CommonCrawlExtractor:
|
||||
:param warc_url:
|
||||
:return:
|
||||
"""
|
||||
with open(self.__log_pathname_fully_extracted_warcs, 'a') as log_file:
|
||||
log_file.write(warc_url + '\n')
|
||||
if self.__log_pathname_fully_extracted_warcs is not None:
|
||||
with open(self.__log_pathname_fully_extracted_warcs, 'a') as log_file:
|
||||
log_file.write(warc_url + '\n')
|
||||
|
||||
def filter_record(self, warc_record, article=None):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user