aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/subscriptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube/subscriptions.py')
-rw-r--r--youtube/subscriptions.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube/subscriptions.py b/youtube/subscriptions.py
index 2c8f5f5..76130f3 100644
--- a/youtube/subscriptions.py
+++ b/youtube/subscriptions.py
@@ -453,9 +453,11 @@ def _get_upstream_videos(channel_id):
time_published = int(calendar.timegm(time.strptime(time_published_element.text, '%Y-%m-%dT%H:%M:%S+00:00')))
times_published[video_id_element.text] = time_published
- except (AssertionError, defusedxml.ElementTree.ParseError) as e:
+ except AssertionError:
print('Failed to read atoma feed for ' + channel_status_name)
traceback.print_exc()
+ except defusedxml.ElementTree.ParseError:
+ print('Failed to read atoma feed for ' + channel_status_name)
channel_info = yt_data_extract.extract_channel_info(json.loads(channel_tab), 'videos')
if channel_info['error']: