summaryrefslogtreecommitdiff
path: root/services/api/src/trading_api/routers/strategies.py
diff options
context:
space:
mode:
Diffstat (limited to 'services/api/src/trading_api/routers/strategies.py')
-rw-r--r--services/api/src/trading_api/routers/strategies.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/api/src/trading_api/routers/strategies.py b/services/api/src/trading_api/routers/strategies.py
index 5db7320..157094c 100644
--- a/services/api/src/trading_api/routers/strategies.py
+++ b/services/api/src/trading_api/routers/strategies.py
@@ -44,7 +44,7 @@ async def list_strategies():
]
except (ImportError, FileNotFoundError) as exc:
logger.error("Strategy loading error: %s", exc)
- raise HTTPException(status_code=503, detail="Strategy engine unavailable")
+ raise HTTPException(status_code=503, detail="Strategy engine unavailable") from exc
except Exception as exc:
logger.error("Failed to list strategies: %s", exc, exc_info=True)
- raise HTTPException(status_code=500, detail="Failed to list strategies")
+ raise HTTPException(status_code=500, detail="Failed to list strategies") from exc