diff --git a/SeriesMgr/GetModelInfo.py b/SeriesMgr/GetModelInfo.py index ed0fbc1db..939d16f79 100644 --- a/SeriesMgr/GetModelInfo.py +++ b/SeriesMgr/GetModelInfo.py @@ -231,7 +231,12 @@ def ExtractRaceResultsExcel( raceInSeries, seriesModel ): try: info['lastName'], info['firstName'] = name.split(',',1) except: - pass + # Failing that, split on the last space character. + try: + info['firstName'], info['lastName'] = name.rsplit(' ',1) + except: + # If there are no spaces to split on, treat the entire name as lastName. This is fine. + info['lastName'] = name if not info['firstName'] and not info['lastName']: continue