Traceback (most recent call last):
File "C:\Users\Nathan\.pyenv\pyenv-win\versions\3.11.3\Lib\shutil.py", line 825, in move
os.rename(src, real_dst)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\Nathan\\.local\\apprise-api\\apprise_api\\var\\config\\27\\tmpi0utrc0z.tmp' -> 'C:\\Users\\Nathan\\.local\\apprise-api\\apprise_api\\var\\config\\27\\7a415748edb692e8bf8c4361e9777d92f2dfad2359bbd8c9fbcd49.text'
mkstemp() also returns an open file handle (that we don't use), which must be closed as Windows won't allow renaming an open file.
Description:
Saving settings on Windows fails with:
mkstemp()
also returns an open file handle (that we don't use), which must be closed as Windows won't allow renaming an open file.Checklist
flake8
)