python-dotenv icon indicating copy to clipboard operation
python-dotenv copied to clipboard

Fixes #413, whereby the NamedTemporaryFile "dest" was out of scope in the error handling portion of rewrite.

Open theGOTOguy opened this issue 3 years ago • 0 comments

I just changed the with block to dest = ... since delete=False was preventing it from being cleaned up anyway, and then set a default value for dest in case an error happens earlier.

theGOTOguy avatar Jul 27 '22 07:07 theGOTOguy

Thanks, @theGOTOguy, for the fix!

theskumar avatar Sep 03 '22 13:09 theskumar