TURNER VALLEY, Alta. -- Workers have stopped the flow of potentially deadly sour gas in a ruptured pipeline in southern Alberta, but residents of nearby Turner Valley are being asked to stay in their homes.

Cara Tobin of the Alberta Energy Regulator says the well feeding the line has been shut off, but crews can't get in to seal off the rupture.

That part of the pipeline is under water due to extreme flooding.

She says Calgary-based Legacy Oil and Gas, the pipeline's owner, and the fire department have detected no dangerous levels of hydrogen sulphide, which smells like rotten eggs.

An emergency alert had called the rupture potentially life-threatening and urged people to move indoors and prepare for a possible evacuation.

The town of Turner Valley did ask some residents to leave.