diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-09-27 01:12:46 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-09-27 01:12:46 +0600 |
commit | 3c63e1bb5740484dae483595a87325e8cf9c7e7b (patch) | |
tree | 5d3ac60296ce3a1a0e0116c0d7fb9ab8c8ecbe54 /youtube_dl/extractor | |
parent | c471b34575eac87b0841616dd6acb90b221c6fe6 (diff) |
[eagleplatform] Make _handle_error staticmethod
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/eagleplatform.py | 3 |
1 files changed, 2 insertions, 1 deletions
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) |