From a732ecb7c0ebc58df1f4379e3f1b6bb2d90be29f Mon Sep 17 00:00:00 2001 From: Nik Date: Tue, 27 Feb 2018 19:25:50 +0400 Subject: [PATCH] Added filter of teams with empty team names on Olimp. --- surebet/parsing/olimp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/surebet/parsing/olimp.py b/surebet/parsing/olimp.py index 361981b..7c80444 100644 --- a/surebet/parsing/olimp.py +++ b/surebet/parsing/olimp.py @@ -121,7 +121,7 @@ def __init__(self, bet): def is_valid_team_names(first_team, second_team): - return not (CORNERS_STR in first_team and CORNERS_STR in second_team) + return first_team and second_team and not (CORNERS_STR in first_team and CORNERS_STR in second_team) def parse(source, bookmaker):