Use shutil.move instead of os.replace, for compatibility

This commit is contained in:
Fabian Dill 2021-01-21 23:58:30 +01:00
parent 2833d99eda
commit 7ce9278123
1 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ import sys
import typing
import os
import subprocess
import shutil
from random import randrange
@ -1418,7 +1419,7 @@ async def main():
adjustedromfile, adjusted = Utils.get_adjuster_settings(romfile)
if adjusted:
try:
os.replace(adjustedromfile, romfile)
shutil.move(adjustedromfile, romfile)
adjustedromfile = romfile
except Exception as e:
logging.exception(e)