Skip to content

Fixing ValueError thrown by int('') #59

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

Merged
merged 1 commit into from
May 4, 2021
Merged

Fixing ValueError thrown by int('') #59

merged 1 commit into from
May 4, 2021

Conversation

mattpopovich
Copy link
Contributor

@mattpopovich mattpopovich commented Apr 28, 2021

YouTube can return 'No likes' / 'No dislikes'. The digits from this string give ''. Casting '' to an int gives ValueError.

Source: Some YouTube videos don't have likes or dislikes 😅

YT can return 'No likes' / 'No dislikes'. The digits from this string give ''. Casting '' to an int gives ValueError.
Copy link
Owner

@x4nth055 x4nth055 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mattpopovich, helpful addition! I will reflect this into the tutorial as well.

@x4nth055 x4nth055 merged commit 14f8bb5 into x4nth055:master May 4, 2021
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 this pull request may close these issues.

2 participants