mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-23 02:25:11 +00:00
[yandexmusic] Improve error handling
This commit is contained in:
parent
0cbcbdd89d
commit
eebe6b382e
1 changed files with 4 additions and 3 deletions
|
@ -18,6 +18,7 @@
|
||||||
class YandexMusicBaseIE(InfoExtractor):
|
class YandexMusicBaseIE(InfoExtractor):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _handle_error(response):
|
def _handle_error(response):
|
||||||
|
if isinstance(response, dict):
|
||||||
error = response.get('error')
|
error = response.get('error')
|
||||||
if error:
|
if error:
|
||||||
raise ExtractorError(error, expected=True)
|
raise ExtractorError(error, expected=True)
|
||||||
|
|
Loading…
Reference in a new issue