[bbc] correct catched exception type
authorRemita Amine <remitamine@gmail.com>
Tue, 2 Mar 2021 10:21:49 +0000 (11:21 +0100)
committerRemita Amine <remitamine@gmail.com>
Tue, 2 Mar 2021 10:21:49 +0000 (11:21 +0100)
youtube_dl/extractor/bbc.py

index a0c557929e84f162694550d425168bcec2735eb7..92e6f1bea37da50f2d4a838dc4ac0596663bb537 100644 (file)
@@ -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)