Hello I have definied some conditions about fundamental factors in order to select stock that meet these conditions. Within the FineSelectionFunction, I create the following list: 

 filtered_fine = [x for x in fine if ((x.EarningReports.BasicEPS.OneMonth - x.EarningReports.BasicEPS.ThreeMonths)/ (x.EarningReports.BasicEPS.ThreeMonths)) > 0.25
            and (x.OperationRatios.ROE.OneMonth) > 0.17 
            and ((x.FinancialStatements.IncomeStatement.TotalRevenue.OneMonth -x.FinancialStatements.IncomeStatement.TotalRevenue.ThreeMonths)/ (x.FinancialStatements.IncomeStatement.TotalRevenue.ThreeMonths)) >0.25]

When the algo start to run I have the following error: 

Runtime Error: InvalidOperation : [<class 'decimal.DivisionUndefined'>]
at FineSelectionFunction in main.py:line 51
at <listcomp> in main.py:line 51
InvalidOperation : [<class 'decimal.DivisionUndefined'>] (Open Stacktrace)

I write with try and except to handle the error but the error continue. Sth know how to fix this?

Thanks for the help

Nicolás 

Author