From 4993132344611e77e71d27cbd4803a323e7006f4 Mon Sep 17 00:00:00 2001 From: Remita Amine Date: Mon, 11 Mar 2019 15:37:19 +0100 Subject: [PATCH] [pandatv] fix condition syntax --- youtube_dl/extractor/pandatv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/pandatv.py b/youtube_dl/extractor/pandatv.py index 13a2e7efc..4219802d5 100644 --- a/youtube_dl/extractor/pandatv.py +++ b/youtube_dl/extractor/pandatv.py @@ -36,7 +36,7 @@ class PandaTVIE(InfoExtractor): 'https://www.panda.tv/api_room_v2?roomid=%s' % video_id, video_id) error_code = config.get('errno', 0) - if error_code is not 0: + if error_code != 0: raise ExtractorError( '%s returned error %s: %s' % (self.IE_NAME, error_code, config['errmsg']), -- 2.40.0