Fix error when channel has empty description

This commit is contained in:
James Taylor 2019-07-23 22:36:43 -07:00
parent 2034b6bd25
commit fe38aa214b

View File

@ -251,8 +251,10 @@ def extract_info(polymer_json, tab):
continue
info['stats'].append(yt_data_extract.get_plain_text(stat))
if 'description' in channel_metadata:
info['description'] = yt_data_extract.get_text(channel_metadata['description'])
else:
info['description'] = ''
else:
raise NotImplementedError('Unknown or unsupported channel tab: ' + tab)