aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/channel.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube/channel.py')
-rw-r--r--youtube/channel.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/youtube/channel.py b/youtube/channel.py
index fe5af8c..4f719ae 100644
--- a/youtube/channel.py
+++ b/youtube/channel.py
@@ -251,8 +251,10 @@ def extract_info(polymer_json, tab):
continue
info['stats'].append(yt_data_extract.get_plain_text(stat))
-
- info['description'] = yt_data_extract.get_text(channel_metadata['description'])
+ 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)