Error !

AttributeError: 'NoneType' object has no attribute 'BestLaptimeResults'

quali_bestlaps = [] for split in event.Splits(): race1_bestlaps += split.Race1Results().BestLaptimeResults() if split.Race2Results() is not None: race2_bestlaps += split.Race2Results().BestLaptimeResults() quali_bestlaps += split.QualifyingResults().FinalResults()
/var/www/rlr.simrace.ro/Lib/templates/results.html, line 52:
race1_bestlaps += split.Race1Results().BestLaptimeResults()
/usr/local/lib64/python3.6/site-packages/mako/runtime.py, line 947:
callable_(context, *args, **kwargs)
/usr/local/lib64/python3.6/site-packages/mako/runtime.py, line 920:
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
/usr/local/lib64/python3.6/site-packages/mako/runtime.py, line 883:
**_kwargs_for_callable(callable_, data)
/usr/local/lib64/python3.6/site-packages/mako/template.py, line 476:
return runtime._render(self, self.callable_, args, data)
/var/www/rlr.simrace.ro/races/index.py, line 507:
split_names = split_names