From e9808a1bcbde4edb708929da35c3374dea1b9594 Mon Sep 17 00:00:00 2001 From: Hubert Kario Date: Wed, 20 Jul 2016 20:21:28 +0200 Subject: [PATCH] report errors in cert file searching since the certificates are separate from results file, they can get missing (or an incorrect set can be used) provide a clear message about what file is missing --- top1m/parse_CAs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/top1m/parse_CAs.py b/top1m/parse_CAs.py index 9c3f1a6..29812e0 100644 --- a/top1m/parse_CAs.py +++ b/top1m/parse_CAs.py @@ -61,7 +61,8 @@ def get_path_for_hash(cert_hash): if not os.path.exists(f_name): f_name = ca_certs_path + '/' + cert_hash + '.pem' if not os.path.exists(f_name): - #print("File with hash " + c_hash + " is missing!") + sys.stderr.write("File with hash {0} ({1}) is missing!\n".format( + cert_hash, f_name)) return None return f_name