summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2024-09-14 14:51:31 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2024-09-14 14:51:31 -0700
commit7153c73288fc8302039877b95958408a968295c6 (patch)
treebb213403fa99b3e86f8e0e1bde7cc57aa18503b5
parentfix: handle mirror_url fetch errors (diff)
downloadgentoo-mirrorstats-master.tar.gz
gentoo-mirrorstats-master.tar.bz2
gentoo-mirrorstats-master.zip
fix: improve exception outputHEADmaster
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-xhtml/generate.py2
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')