Always get credit in your own name whether you are single, married, separated, or divorced.
It is allways a good idea to get credit in your own name; you are entitled to a credit file in your own name.
If your spouse or former spouse has credit or has bad credit and most credit was in the spouse's name, then you my friend do not have a credit file.
It would definitely be in your advantage, and your partner too, to have your own credit file. you never know when you may need it