fix Error when profil not correct configurated

This commit is contained in:
Hofei90
2021-01-29 12:29:37 +01:00
parent 8f52b90036
commit 702d150a23
+5 -1
View File
@@ -78,7 +78,11 @@ def get_hc_domination_stats(stats, user):
def get_standard_statistik(url, user): def get_standard_statistik(url, user):
url = url.format(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) check_user(user)
stats = data["segments"][0]["stats"] stats = data["segments"][0]["stats"]