]> git.bitcoin.ninja Git - youtube-dl/commit
[openload] Remove a confusing exception
authorYen Chi Hsuan <yan12125@gmail.com>
Sun, 24 Dec 2017 12:47:42 +0000 (20:47 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Sun, 24 Dec 2017 12:47:42 +0000 (20:47 +0800)
commita75419586bb900df711de49adf5047afa9f083ef
treee684ff79b4968a1adc6047f32b22621208b6fba8
parent273c23d960cbd2da18fadaef002473db41b5f56b
[openload] Remove a confusing exception

If phantomjs is not installed, there's an error besides the missing
phantomjs exception:

Exception ignored in: <bound method PhantomJSwrapper.__del__ of <youtube_dl.extractor.openload.PhantomJSwrapper object at 0x7f8ad5e78278>>
Traceback (most recent call last):
  File "/home/yen/Projects/youtube-dl/youtube_dl/extractor/openload.py", line 142, in __del__
    os.remove(self._TMP_FILES[name].name)
AttributeError: 'PhantomJSwrapper' object has no attribute '_TMP_FILES'
youtube_dl/extractor/openload.py