Traceback (most recent call last):


 "/usr/bin/youtube-dl", line 10, in <module>

sys.exit(main())


 "/usr/lib/python3.7/site-packages/youtube_dl/__init__.py", line 474, in main

_real_main(argv)


 "/usr/lib/python3.7/site-packages/youtube_dl/__init__.py", line 464, in _real_main

retcode = ydl.download(all_urls)


 "/usr/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line 2018, in download

url, force_generic_extractor=self.params.get('force_generic_extractor', False))


 "/usr/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line 796, in extract_info

ie_result = ie.extract(url)


 "/usr/lib/python3.7/site-packages/youtube_dl/extractor/common.py", line 530, in extract

ie_result = self._real_extract(url)


 "/usr/lib/python3.7/site-packages/youtube_dl/extractor/servingsys.py", line 51, in _real_extract

title = vast_doc.find('.//AdTitle').text
AttributeError: 'NoneType' object has no attribute 'text'

Traceback (most recent call last):


 "/home/pi/GassistPi/src/actions.py", line 998, in YouTube_No_Autoplay

say("Getting youtube link")


 "/home/pi/GassistPi/src/actions.py", line 201, in say

words= translator.translate(words, dest=language)


 "/home/pi/env/lib/python3.5/site-packages/googletrans/client.py", line 172, in translate

data = self._translate(text, dest, src)


 "/home/pi/env/lib/python3.5/site-packages/googletrans/client.py", line 75, in _translate

token = self.token_acquirer.do(text)


 "/home/pi/env/lib/python3.5/site-packages/googletrans/gtoken.py", line 180, in do

self._update()


 "/home/pi/env/lib/python3.5/site-packages/googletrans/gtoken.py", line 59, in _update

code = unicode(self.RE_TKK.search(r.text).group(1)).replace('var ', '')
AttributeError: 'NoneType' object has no attribute 'group'
