STM32 enable EXTI7 always enter ISR and no trigger

Hi,everyone.In my routine I enable EXTI7,but the routine always enter ISR and no trigger.My routine has UCOS and clears the flag in in initialization.This behavior seems strange to me, how can I can resolve this situation ?