1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-05-19 11:39:28 +00:00

Apply suggestions from code review

This commit is contained in:
dirkf 2024-01-23 04:00:35 +00:00 committed by GitHub
parent 2d7b8c95e3
commit f7c7ffbd09
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,6 +4,7 @@ from __future__ import unicode_literals
from .common import InfoExtractor
from ..utils import (
ExtractorError,
merge_dicts,
T,
traverse_obj,
@ -32,7 +33,7 @@ class BandlabIE(InfoExtractor):
track_url = traverse_obj(config, ('track', 'sample', 'audioUrl', T(url_or_none)))
if not track_url:
raise ExtractorError(
'[%s] 'No video formats found!' % (self.ie_key(), ),
'[%s] No video formats found!' % (self.ie_key(), ),
video_id=track_id, expected=True)
title = config['track']['name']