[Errno 2] No such file or directory: './cache/public-suffix-list.txt': FileNotFoundError Traceback (most recent call last): File "/var/task/lambda_handler.py", line 29, in handler data = scanner.scan(domain, environment, options) File "/var/task/scanners/pshtt.py", line 79, in scan suffix_list = codecs.open(lambda_suffix_path, encoding='utf-8') File "/var/lang/lib/python3.6/codecs.py
[Errno 2] No such file or directory: './cache/public-suffix-list.txt': FileNotFoundError
Traceback (most recent call last):
File "/var/task/lambda_handler.py", line 29, in handler
data = scanner.scan(domain, environment, options)
File "/var/task/scanners/pshtt.py", line 79, in scan
suffix_list = codecs.open(lambda_suffix_path, encoding='utf-8')
File "/var/lang/lib/python3.6/codecs.py", line 895, in open
file = builtins.open(filename, mode, buffering)
FileNotFoundError: [Errno 2] No such file or directory: './cache/public-suffix-list.txt'
In #234 the
public-suffix-list.txt
moved tocache/public-suffix-list.txt
. https://github.com/18F/domain-scan/blob/master/lambda/remote_build.sh#L64-L65 stores the file in the root - instead of thecache
dir. Should this be changed, too?