os.rename crashes in certain scenarios (just happened to me), see the python docs. shutil.move handles these cases better, also see this question on stackoverflow.
What I did
Replaced os.rename with shutil.move.
Checklist
[x] I have confirmed that my PR passes all linting checks
os.rename
crashes in certain scenarios (just happened to me), see the python docs. shutil.move handles these cases better, also see this question on stackoverflow.What I did
Replaced
os.rename
withshutil.move
.Checklist