[FIX] Replaced warning by raise