mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-09-12 08:56:25 +02:00
[yandexmusic] Improve error handling
This commit is contained in:
parent
0cbcbdd89d
commit
eebe6b382e
@ -18,6 +18,7 @@ from ..utils import (
|
||||
class YandexMusicBaseIE(InfoExtractor):
|
||||
@staticmethod
|
||||
def _handle_error(response):
|
||||
if isinstance(response, dict):
|
||||
error = response.get('error')
|
||||
if error:
|
||||
raise ExtractorError(error, expected=True)
|
||||
|
Loading…
Reference in New Issue
Block a user