Oil rose from a six-week low amid uncertainty over the outlook for a peace deal to end the war in Iran.