fix Error when profil not correct configurated

master^2
Hofei90 4 years ago
parent 8f52b90036
commit 702d150a23

@ -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"]

Loading…
Cancel
Save