Several homes were evacuated and a number of city streets were shut down for a few hours Tuesday after crews struck a major gas line in the Upper Beaches.

Crews struck the line while working in the area of Gerrard Street East and Wayland Avenue at around 9:10 a.m.

A number of homes were evacuated as a precaution and roads were shut down for several blocks around the site, Toronto police said. Gerrard Street East was closed between Wayland Avenue and Malvern Avenue, but has since reopened.

Police said crews managed to cap the leak shortly before 2 p.m.

No injuries have been reported.