From: Yen Chi Hsuan Date: Thu, 18 Jun 2015 13:40:45 +0000 (+0800) Subject: [bbccouk] Fix error handling X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=974a6146fe71029a8dedf670fd72501da5ec3809;p=youtube-dl [bbccouk] Fix error handling --- diff --git a/youtube_dl/extractor/bbccouk.py b/youtube_dl/extractor/bbccouk.py index 249bc6bbd..4b25b8c38 100644 --- a/youtube_dl/extractor/bbccouk.py +++ b/youtube_dl/extractor/bbccouk.py @@ -267,7 +267,7 @@ class BBCCoUkIE(InfoExtractor): programme_id, 'Downloading media selection XML') except ExtractorError as ee: if isinstance(ee.cause, compat_HTTPError) and ee.cause.code == 403: - media_selection = xml.etree.ElementTree.fromstring(ee.cause.read().encode('utf-8')) + media_selection = xml.etree.ElementTree.fromstring(ee.cause.read().decode('utf-8')) else: raise