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

key error: 'streamingData' #2

Open
masikh opened this issue May 25, 2020 · 0 comments
Open

key error: 'streamingData' #2

masikh opened this issue May 25, 2020 · 0 comments

Comments

@masikh
Copy link

masikh commented May 25, 2020

When trying to initialize a non existing YouTube link I get a key error which is not catched by the pytube3 library. I have to catch it in my own code which I think is dirty.

example:

def init_yt(self): try: self.yt_link = YouTube('https://www.youtube.com/watch?v={yt_key}'.format(yt_key=self.yt_key)) except Exception as error: print('caught error: {error}'.format(error=error))

if I don't do the try/except it will crash on a 'streamingData' key error.

Kind regards,

Robert

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