Bladder infection while pregnant

So I am pregnant and i have a bladder infection.. doctor prescribed me antibiotic pills but every time i take them I throw up. What are somethings I can do that won't get me to throw up?