fix Error when profil not correct configurated
This commit is contained in:
+5
-1
@@ -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"]
|
||||||
|
|||||||
Reference in New Issue
Block a user