Skip to content

Commit dd06144

Browse files
committed
Minor regression algorithms fix
1 parent 87a3eb7 commit dd06144

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Algorithm.CSharp/StringToSymbolImplicitConversionRegressionAlgorithm.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public override void OnData(Slice slice)
4949
}
5050
catch (Exception exception)
5151
{
52-
if (exception.Message.Contains("This asset symbol (PEPE 0) was not found in your security list") && !Portfolio.Invested)
52+
if (exception.Message.Contains("PEPE was not found", StringComparison.InvariantCultureIgnoreCase) && !Portfolio.Invested)
5353
{
5454
SetHoldings("SPY", 1);
5555
}

Algorithm.Python/StringToSymbolImplicitConversionRegressionAlgorithm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ def on_data(self, data):
3434
try:
3535
self.market_order("PEPE", 1)
3636
except Exception as exception:
37-
if "This asset symbol (PEPE 0) was not found in your security list" in str(exception) and not self.portfolio.invested:
37+
if "PEPE was not found" in str(exception) and not self.portfolio.invested:
3838
self.set_holdings("SPY", 1)

0 commit comments

Comments
 (0)