diff --git a/server.py b/server.py index 978f58f..57f2f8a 100755 --- a/server.py +++ b/server.py @@ -402,7 +402,7 @@ class ServerList: fd, indent = "\t" if app.config["DEBUG"] else None ) - os.rename(list_path + "~", list_path) + os.replace(list_path + "~", list_path) def update(self, server): with self.lock: