do `if video.youtube_id not in available_srts:` first, and raise NoSubs.  Then either do an else, or just unindent code (as you're guaranteed to only hit that code if video.youtube_id in available_srts)