def get_teams(teams):
    try: 
        away_team_name = clean_team_name(teams[0].string.strip().lower())
        home_team_name = clean_team_name(teams[1].string.strip().lower())

        home_team = Team(name=home_team_name)
        away_team = Team(name=away_team_name)
        home_team.save()
        away_team.save()
        return (away_team, home_team)
    except: 
        logger.error("problem parsing teams!")
        logger.error(teams)
        return (None, None)
def get_teams(teams):
    try: 

        away_team_name = clean_team_name(teams[0])
        home_team_name = clean_team_name(teams[1])

        home_team = Team(name=home_team_name)
        away_team = Team(name=away_team_name)
        if not DEBUG:
            home_team.save()
            away_team.save()
        return (away_team, home_team)
    except: 
        logger.exception("problem parsing teams!")
        logger.error(teams)
        logger.error("continuing....")
        exit(1)
        return (None, None)