Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chesscomelo fails if the user hasn't played every time control at least once #2430

Closed
dominics opened this issue Apr 30, 2024 · 0 comments · Fixed by #2431
Closed

chesscomelo fails if the user hasn't played every time control at least once #2430

dominics opened this issue Apr 30, 2024 · 0 comments · Fixed by #2431

Comments

@dominics
Copy link
Contributor

When a Chess.com user hasn't played some particular time control at least once, the API returns a rating stat of "Unrated". The app tries to parse this as an integer, and crashes with:

$ pixlet render chesscom_elo.star username=nzdominic
Error: error running script: Traceback (most recent call last):
  chesscom_elo.star/chesscom_elo.star:146:35: in main
Error in int: int: invalid literal with base 10: Unrated

(This is despite what is selected for the game types to display, because all the stats are parsed before any are displayed)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant