A vicious dog won't immediately attack. They'll make a stand barking and growling. If they're impeding your progress that's when you shoot.
It's trivial to find videos of dog attacks that contradict your absolutist assertion.
(I've been attacked by dogs multiple times, and indeed, they warn before attacking.)