mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 10:47:08 -05:00 
			
		
		
		
	[yandexmusic] Improve error handling
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user