set_key doesn't escape values with quotes in them #215
Comments
|
Thank you for reporting this. I can confirm that it's an issue with Python-dotenv and your expectations are sensible. I'll work on a fix. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Suppose you have this code:
What I would expect to see is a
.envfile that looks like this:However what I actually see is this:
Because of the lack of escaping quote character, dotenv has effectively changed the value I was trying to set. In this case, the value passed to dotenv is valid JSON, but the value dotenv saves to the file is not valid JSON.
The text was updated successfully, but these errors were encountered: