phoenix10.1
phoenix10.1 copied to clipboard
Bug: KeyError: 'itunes_author' when using podcast action
When we use the podcast action, at times we might get an error like this:
Traceback (most recent call last):
File "radio.py", line 967, in <module>
dialogue.flow()
File "radio.py", line 739, in flow
speech = self.podcast_dialogue(rss_feed)
File "radio.py", line 489, in podcast_dialogue
"You know, I love listening to podcasts. "
KeyError: 'itunes_author'
This happens because no 'itunes_author' metadata was provided by the RSS feed. We need a fallback condition here.