Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/extract_rankings.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def extract_rankings():
# Check if Rank is numeric, if not skip (it might be a comment row)
try:
rank = int(rank_val)
except:
except ValueError:
continue

item = {
Expand Down
4 changes: 2 additions & 2 deletions scripts/extract_rankings_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def safe_float(val):
if match:
try:
return float(match.group(1))
except:
except ValueError:
pass
return 0.0

Expand Down Expand Up @@ -96,7 +96,7 @@ def extract_rankings():

try:
rank = int(rank_val)
except:
except ValueError:
continue

if i == 0:
Expand Down
Loading