Add files via upload
fixing a result type bug in exception handleer
This commit is contained in:
parent
ae0f6c14f7
commit
295ace0401
1 changed files with 4 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue