Add files via upload

fixing a result type bug in exception handleer
This commit is contained in:
Alpha Nerd 2025-08-31 11:40:13 +02:00 committed by GitHub
parent ae0f6c14f7
commit 295ace0401
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -120,9 +120,10 @@ async def fetch_endpoint_details(endpoint: str, route: str, detail: str) -> List
data = resp.json()
detail = data.get(detail)
return detail
except Exception:
# If anything goes wrong we cannot reply versions
return {detail: "N/A"}
except Exception as e:
# If anything goes wrong we cannot reply details
print(e)
return {detail: ["N/A"]}
def ep2base(ep):
if "/v1" in ep: