check for empty list
This commit is contained in:
parent
c2ea84a620
commit
6f1dced8e2
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@ class GetYoutubeVideos:
|
||||||
self.summary['videos_with_error'] += 1
|
self.summary['videos_with_error'] += 1
|
||||||
self.summary['georestricted_videos'] += 1
|
self.summary['georestricted_videos'] += 1
|
||||||
result = None
|
result = None
|
||||||
if 'proxy' in self.config:
|
if 'proxy' in self.config and len(self.config['proxy']) > 0:
|
||||||
result = self._change_proxy(video_id)
|
result = self._change_proxy(video_id)
|
||||||
if not result:
|
if not result:
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Reference in a new issue