diff --git a/external/stats.py b/external/stats.py index dad52c6..b8fc2af 100644 --- a/external/stats.py +++ b/external/stats.py @@ -14,7 +14,10 @@ def get_stats(): stats = {} for filename in os.listdir(stats_dir): with open(stats_dir + "/" + filename) as json_file: - raw = json.load(json_file)['stats'] + try: + raw = json.load(json_file)['stats'] + except: + continue clean = {} raw_copy = copy.deepcopy(raw) for ra in raw_copy: