Two teens who fired several shots at the door in an escape attempt after a quick-thinking clerk locked them inside during marijuana dispensary robbery have been arrested, Toronto police say.

Two males entered Green Buddha Medicinals near College St. W. and Ossington Ave. on Friday night wearing ski masks and gloves, police said.

One of the men was armed with a loaded revolver, and pointed the gun at the clerk demanding cash and marijuana, police said.

As they packed the stolen property into a hockey bag, the store clerk was able to sneak out the front door, and locked the two suspects in the store before fleeing the scene. They fired several shots at the door in an escape attempt, police said.

Abdullahi Dirie, 19, of Toronto, was arrested. He is facing eight firearm chargers including robbery, disguise with intent and fail to comply recognizance.

The 17-year-old boy, from Toronto was charged with seven firearm charges including robbery, and disguise with intent. He can’t be identified because of the Youth Criminal Justice Act.