precommit fixes
Taylor committed
Jul 2, 2024 at 16:44 UTC
10b3773bd712c517dd4233763450ff103c627c1e
1 file changed
+2
-3
backend/app/connectors/velociraptor/services/artifacts.py
+2
-3
@@ -302,11 +302,10 @@ async def post_to_copilot_ai_module(data: ArtifactReccomendationRequest) -> Arti
302
timeout=120,
303
)
304
response_data = data.json()
305
- logger.info(f"Response from copilot-ai-module: {response_data}")
305
307
- if not response_data.get('success'):
306
+ if not response_data.get("success"):
307
raise HTTPException(
308
status_code=400,
310
- detail=response_data.get('message', 'Request to copilot-ai-module was not successful'),
309
+ detail=response_data.get("message", "Request to copilot-ai-module was not successful"),
310
)
311
return ArtifactReccomendationResponse(**data.json())