Skip to content

Commit a43df43

Browse files
committed
Catch a variant of InvalidPodcastFeed
1 parent 3a03944 commit a43df43

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pyPodcastParser/Podcast.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,12 @@ def __init__(self, feed_content):
109109

110110
try:
111111
channel = self.soup.rss.channel
112+
channel_items = channel.children
112113
except AttributeError:
113114
raise InvalidPodcastFeed('Invalid Podcast Feed')
114115

115116
# Populate attributes based on feed content
116-
for c in channel.children:
117+
for c in channel_items:
117118
if not isinstance(c, Tag):
118119
continue
119120
try:

0 commit comments

Comments
 (0)