MAINT: warn instead of raise