From 295ace0401db599126872c25a0580e0c3c1a6b27 Mon Sep 17 00:00:00 2001 From: alpha-nerd-nomyo Date: Sun, 31 Aug 2025 11:40:13 +0200 Subject: [PATCH] Add files via upload fixing a result type bug in exception handleer --- router.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/router.py b/router.py index b3124ba..13fd123 100644 --- a/router.py +++ b/router.py @@ -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: