You release the rope and float into the air.
Dropping back on to the ground on the rim of the trench,
you
curse at the fiendish trap that had been laid for greedy adventurers like yourself.
You move on to the door opposite your entrance and try the handle.