partitionTry