diff options
| author | Josef Gustafsson <josef.gson@gmail.com> | 2015-09-10 14:43:28 +0200 |
|---|---|---|
| committer | Josef Gustafsson <josef.gson@gmail.com> | 2015-09-10 14:43:28 +0200 |
| commit | 44bbef43af1337c7aa56b0b10fa6344ae8e562f6 (patch) | |
| tree | c69bc69553ffc323d4b04979addfd9c43284fd30 | |
| parent | ebe9b77c6a1f93cf612e0aa13307df1ca79b9b97 (diff) | |
bugfix: error handling in check_cert
| -rwxr-xr-x | monitor/josef_monitor.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/monitor/josef_monitor.py b/monitor/josef_monitor.py index 4f03c73..79d364f 100755 --- a/monitor/josef_monitor.py +++ b/monitor/josef_monitor.py @@ -25,7 +25,7 @@ else: if not os.path.exists(OUTPUT_DIR): os.makedirs(OUTPUT_DIR) - + DB = None parser = argparse.ArgumentParser(description="") @@ -207,7 +207,10 @@ def verify_inclusion_all(old, new): def check_domain(raw_entry, log=None): orig_entry = extract_original_entry(raw_entry) - cert_info = my_get_cert_info(orig_entry[0][0]) + try: + cert_info = my_get_cert_info(orig_entry[0][0]) + except IndexError: + pass if log: cert_info["log"] = log[8:-1] # strip generic URL stuff return cert_info |
