From 900fd59355f468a307d1c15734359f135613dada Mon Sep 17 00:00:00 2001 From: Mark Date: Sun, 26 Mar 2017 14:34:11 -0400 Subject: [PATCH] got rid of try-except --- youtube_dl/YoutubeDL.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index 07247010a..6e9e0cb82 100755 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -951,11 +951,9 @@ class YoutubeDL(object): download=download, extra_info=extra) - try: - if self.params.get('date_ordered_playlist') and entry_result.get('upload_date') not in self.params.get('daterange'): - break - except TypeError: - pass + entry_result_uploaddate = entry_result.get('upload_date') + if self.params.get('date_ordered_playlist') and entry_result_uploaddate not in self.params.get('daterange'): + break playlist_results.append(entry_result)