Skip to content

Commit

Permalink
update error message (#475)
Browse files Browse the repository at this point in the history
### Tasks

- fixes #443
- fixes #444
  • Loading branch information
AlexTheLion123 authored Jul 25, 2023
1 parent 3ec55ba commit 42c2772
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tradeexecutor/backtest/backtest_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def setup_backtest(
"""

assert isinstance(strategy_path, Path), f"Got {strategy_path}"
assert initial_deposit > 0
assert initial_deposit > 0, "Remember to set the backtest variables in your strategy module. See https://tradingstrategy.ai/docs/deployment/vault-deployment.html#run-a-backtest-on-the-strategy-module"

wallet = SimulatedWallet()
# deposit_syncer = BacktestSyncer(wallet, Decimal(initial_deposit))
Expand Down
2 changes: 1 addition & 1 deletion tradeexecutor/backtest/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def _inject_custom_css_and_js(html: str, css_code: str, js_code: str) -> str:
...
"""
assert css_code
soup = BeautifulSoup(html)
soup = BeautifulSoup(html, features='lxml')
head = soup.head
# Add a style tag class for better diagnostics
tag = soup.new_tag('style', attrs={"id": "trade-executor-css-inject"}, type='text/css')
Expand Down

0 comments on commit 42c2772

Please sign in to comment.