CloudBotIRC / CloudBot

CloudBot - The simple, fast, expandable, open-source Python IRC Bot!
GNU General Public License v3.0
273 stars 252 forks source link

fix for youtube.py #245

Closed ghost closed 5 years ago

ghost commented 7 years ago

Implemented simple try/except blocks for a few variables in youtube.py -- catches the raised exception and still prints the title but with N/A as like/dislike/percentage.

daboross commented 7 years ago

I... guess this works. Ideally we would want to check if the optional things are in the result with the in operator, rather than catching an error, but if no one else objects I can merge this for now in a bit.