Repair raise exception statement

Apparently, I had mutilated an else branch. This commit fixes the
typos.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>