diff --git a/get_cod_stats.py b/get_cod_stats.py index 8287172..1e158a3 100644 --- a/get_cod_stats.py +++ b/get_cod_stats.py @@ -78,7 +78,11 @@ def get_hc_domination_stats(stats, user): def get_standard_statistik(url, user): url = url.format(user) - data = get_json_data(url)["data"] + json_data = get_json_data(url) + if not json_data["data"]: + return + else: + data = json_data["data"] check_user(user) stats = data["segments"][0]["stats"]