(self, parsed)
validates the parsed results and raises an exception if invalid

        feedparser parses pretty much everything. We reject anything that
        doesn't look like a feed
validates the parsed results and raises an exception if invalid
validates the parsed results and raises an exception if invalid
def _validate_parsed(self, parsed):
        """validates the parsed results and raises an exception if invalid

        feedparser parses pretty much everything. We reject anything that
        doesn't look like a feed"""

        if not parsed or not parsed.get("episodes", []):
            raise NoEpisodesException("no episodes found")
def _validate_parsed ( self , parsed ) : if not parsed or not parsed . get ( "episodes" , [ ] ) : raise NoEpisodesException ( "no episodes found" )