fix visu error api
This commit is contained in:
@@ -95,7 +95,7 @@ async def analysis_interface_hosts(
|
||||
try:
|
||||
rows = await db.infer_interface_hosts(since=since, limit_per_interface=limit_per_interface)
|
||||
except Exception as exc:
|
||||
raise HTTPException(status_code=500, detail="Failed to infer interface host mapping") from exc
|
||||
raise HTTPException(status_code=500, detail=f"Failed to infer interface host mapping: {exc}") from exc
|
||||
|
||||
interfaces = [InterfaceAttachment(**row) for row in rows]
|
||||
return InterfaceHostAnalysisResponse(since=since, interfaces=interfaces)
|
||||
@@ -138,7 +138,7 @@ async def analysis_interface_host_protocols(
|
||||
limit_protocols_per_host=limit_protocols_per_host,
|
||||
)
|
||||
except Exception as exc:
|
||||
raise HTTPException(status_code=500, detail="Failed to infer interface host protocol mapping") from exc
|
||||
raise HTTPException(status_code=500, detail=f"Failed to infer interface host protocol mapping: {exc}") from exc
|
||||
|
||||
interfaces = [InterfaceProtocolAttachment(**row) for row in rows]
|
||||
return InterfaceHostProtocolAnalysisResponse(since=since, interfaces=interfaces)
|
||||
|
||||
Reference in New Issue
Block a user