From: Sergey M․ Date: Sat, 26 Sep 2015 19:12:46 +0000 (+0600) Subject: [eagleplatform] Make _handle_error staticmethod X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=3c63e1bb5740484dae483595a87325e8cf9c7e7b;p=youtube-dl [eagleplatform] Make _handle_error staticmethod --- diff --git a/youtube_dl/extractor/eagleplatform.py b/youtube_dl/extractor/eagleplatform.py index 43336e57f..ee24242a8 100644 --- a/youtube_dl/extractor/eagleplatform.py +++ b/youtube_dl/extractor/eagleplatform.py @@ -48,7 +48,8 @@ class EaglePlatformIE(InfoExtractor): 'skip': 'Georestricted', }] - def _handle_error(self, response): + @staticmethod + def _handle_error(response): status = int_or_none(response.get('status', 200)) if status != 200: raise ExtractorError(' '.join(response['errors']), expected=True)