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

How to read error using ydl.extract_info? #21747

Closed
ghost opened this issue Jul 12, 2019 · 1 comment
Closed

How to read error using ydl.extract_info? #21747

ghost opened this issue Jul 12, 2019 · 1 comment

Comments

@ghost
Copy link

@ghost ghost commented Jul 12, 2019

Hello!
How to read error message with bellow code?

ydl = YoutubeDL()
info = ydl.extract_info(url, download=False)
jsondata = json.dumps(info)

Please help, Thank you,

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jul 12, 2019

Catch exceptions.

@dstftw dstftw closed this Jul 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.