Take into account older Flask versions