Wrap the exception handling in parsePartitionValue()