aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2021-03-02 11:21:49 +0100
committerRemita Amine <remitamine@gmail.com>2021-03-02 11:21:49 +0100
commite1adb3ed4fc911a8177280fe87109e7b54a52fa2 (patch)
tree619ea903548d869f603849e640c10d4f77d34307
parente465b25c1fb0e72b97a032220399d4a959662095 (diff)
[bbc] correct catched exception type
-rw-r--r--youtube_dl/extractor/bbc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/bbc.py b/youtube_dl/extractor/bbc.py
index a0c557929..92e6f1bea 100644
--- a/youtube_dl/extractor/bbc.py
+++ b/youtube_dl/extractor/bbc.py
@@ -943,7 +943,7 @@ class BBCIE(BBCCoUkIE):
else:
entry['title'] = info['title']
entry['formats'].extend(info['formats'])
- except Exception as e:
+ except ExtractorError as e:
# Some playlist URL may fail with 500, at the same time
# the other one may work fine (e.g.
# http://www.bbc.com/turkce/haberler/2015/06/150615_telabyad_kentin_cogu)