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

Errors in YouTube bot #209

Open
iamparas0 opened this issue Jun 20, 2023 · 0 comments
Open

Errors in YouTube bot #209

iamparas0 opened this issue Jun 20, 2023 · 0 comments

Comments

@iamparas0
Copy link

The code you provided appears to be mostly correct. However, there is a potential error in the download_video function's exception handling. The except block is catching all exceptions without specifying the specific exception type, which is generally not recommended. It's a good practice to catch specific exceptions to handle them appropriately.

To fix this, i can update the except block in the download_video function to catch the specific exception youtube_dl.DownloadError:

And also add features, please assign me for this!

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

No branches or pull requests

1 participant