Skip to content

Commit 9f96cf4

Browse files
committed
fix no odds
1 parent eaf09dc commit 9f96cf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sportsbetting/auxiliary_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def merge_dict_odds(dict_odds, needs_date=True):
202202
if odds:
203203
if list(list(odds.values())[0]["odds"].keys()):
204204
site = list(list(odds.values())[0]["odds"].keys())[0]
205-
if match in odds.keys() and odds[match]["odds"] and odds[match]["odds"][site]:
205+
if match in odds.keys() and odds[match].get("odds") and odds[match]["odds"][site]:
206206
if (not date_found and odds[match].get("date") and odds[match]["date"] != "undefined"):
207207
new_dict[match]["date"] = odds[match]["date"]
208208
date_found = True

0 commit comments

Comments
 (0)