diff options
Diffstat (limited to 'html/generate.py')
-rwxr-xr-x | html/generate.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/html/generate.py b/html/generate.py index a4b75e8..2d6ed2b 100755 --- a/html/generate.py +++ b/html/generate.py @@ -120,7 +120,13 @@ def getHostList(mirrorstatsList): # process all mirrors for mirror_url in mirrorstatsList: - mirrorData = getJson(mirror_url) + mirrorData = None + try: + mirrorData = getJson(mirror_url) + except Exception as err: + print("Exception fetching "+mirror_url+": ", err) + continue + lastUpdate = datetime.datetime.fromtimestamp(int(mirrorData['LastUpdate'])).strftime('%Y-%m-%d %H:%M:%S') for mirror in mirrorData['Mirrors']: |