[yandexmusic] Improve error handling

pull/9329/merge
Sergey M․ 9 years ago
parent 0cbcbdd89d
commit eebe6b382e
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

@ -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…
Cancel
Save