Free, open-source 3D sculpting for Linux, macOS and Windows: dense meshes, remeshing, painting, built-in AI (image/text to 3D), Send to Unreal, game-ready LODs, Gaussian splats and OpenUSD.
C++ 3d3d-sculptingcppdear-imguidigital-sculptingfbxgame-developmentgaussian-splattinggltfimage-to-3dmcpopenglopenusdsculptingtext-to-3dunreal-engine
Download stats: say what the API answered when a call fails
islandmed8dd5970ed1a1
diff --git a/tools/download-stats.py b/tools/download-stats.pyindex abba0c2e..78465b7c 100755--- a/tools/download-stats.py+++ b/tools/download-stats.py@@ -16,6 +16,7 @@ import argparseimport jsonimport osimport sys+import urllib.errorimport urllib.requestfrom datetime import datetime, timezone@@ -31,8 +32,11 @@ def api(url, token=None, data=None):if data is not None:headers["Content-Type"] = "application/json"data = json.dumps(data).encode()- with urllib.request.urlopen(urllib.request.Request(url, data=data, headers=headers), timeout=60) as r:- return json.load(r) if r.status != 202 else None+ try:+ with urllib.request.urlopen(urllib.request.Request(url, data=data, headers=headers), timeout=60) as r:+ return json.load(r) if r.status != 202 else None+ except urllib.error.HTTPError as e:+ sys.exit(f"{url}: HTTP {e.code}: {e.read().decode(errors='replace')[:500]}")def release_totals(github_token):