It's possible you've encountered a snake in an area where a skunk has recently been, and the smell lingered.
If you're ever unsure about a snake's identity, it's best to observe it from a safe distance and contact a local wildlife expert or herpetologist for identification.