diff options
author | Linus Nordberg <linus@nordu.net> | 2017-02-08 10:38:17 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2017-02-08 10:38:17 +0100 |
commit | c1ac7daa7589346f7308e5399452e3a7993a1b85 (patch) | |
tree | 70a43b0ef3f28fd8396823fa927038b8ece676de /tools/loginfo.py | |
parent | b188fcc29c3df97978e5da4a87b946b300d79932 (diff) |
Have loginfo.py tolerate 500 for a while when waiting for STH.
Diffstat (limited to 'tools/loginfo.py')
-rwxr-xr-x | tools/loginfo.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |