Oil edged higher as traders weighed risks to Middle East supplies, with a critical Saudi Arabian pipeline still offline after an attack.