diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2024-09-14 14:51:31 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2024-09-14 14:51:31 -0700 |
commit | 7153c73288fc8302039877b95958408a968295c6 (patch) | |
tree | bb213403fa99b3e86f8e0e1bde7cc57aa18503b5 /html | |
parent | fix: handle mirror_url fetch errors (diff) | |
download | gentoo-mirrorstats-master.tar.gz gentoo-mirrorstats-master.tar.bz2 gentoo-mirrorstats-master.zip |
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'html')
-rwxr-xr-x | html/generate.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/html/generate.py b/html/generate.py index 2d6ed2b..0ec4e4b 100755 --- a/html/generate.py +++ b/html/generate.py @@ -124,7 +124,7 @@ def getHostList(mirrorstatsList): try: mirrorData = getJson(mirror_url) except Exception as err: - print("Exception fetching "+mirror_url+": ", err) + print("Exception fetching "+mirror_url+": ", type(err).__name__, err) continue lastUpdate = datetime.datetime.fromtimestamp(int(mirrorData['LastUpdate'])).strftime('%Y-%m-%d %H:%M:%S') |