From c1ac7daa7589346f7308e5399452e3a7993a1b85 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Wed, 8 Feb 2017 10:38:17 +0100 Subject: Have loginfo.py tolerate 500 for a while when waiting for STH. --- tools/loginfo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/loginfo.py') diff --git a/tools/loginfo.py b/tools/loginfo.py index c742b33..1356806 100755 --- a/tools/loginfo.py +++ b/tools/loginfo.py @@ -7,7 +7,7 @@ import sys import argparse import readconfig -from certtools import create_ssl_context, get_sth +from certtools import create_ssl_context, get_sth_retry def main(): parser = argparse.ArgumentParser(description='') @@ -29,7 +29,7 @@ def main(): paths = localconfig["paths"] create_ssl_context(cafile=paths["https_cacertfile"]) - sth = get_sth(args.baseurl) + sth = get_sth_retry(args.baseurl, tries=10) if args.raw: print sth -- cgit v1.1