Commits

Anonymous committed 6bb8006

Decode the reason given on YouTube errors to avoid crashes (fixes issue #193)

  • Participants
  • Parent commits 978b5e4

Comments (0)

Files changed (1)

 				return
 		if 'token' not in video_info:
 			if 'reason' in video_info:
-				self._downloader.trouble(u'ERROR: YouTube said: %s' % video_info['reason'][0])
+				self._downloader.trouble(u'ERROR: YouTube said: %s' % video_info['reason'][0].decode('utf-8'))
 			else:
 				self._downloader.trouble(u'ERROR: "token" parameter not in video info for unknown reason')
 			return