Calls python destructor to trigger exceptions

The exception in ignored because the generator isn't closed until it is being deleted (automatically in this case, when Python exits); the generator __del__ handler closes the generator, which triggers an exception of there is one.
This commit is contained in:
AlexCatarino
2018-04-26 18:44:56 +01:00
parent c272d11a77
commit 264da8a596
5 changed files with 31 additions and 0 deletions
@@ -81,6 +81,7 @@ namespace QuantConnect.Algorithm.Framework.Alphas
{
yield return insight.AsManagedObject(typeof(Insight)) as Insight;
}
insights.Destroy();
}
}