|
- os.rename(tmpfile.name, str(self.config_file))
|
|
+ os.replace(tmpfile.name, str(self.config_file))
|
|
self.log.warning('Config file saving failed, not replacing %s with %s.', str(self.config_file), tmpfile.name)
|
|
self.log.warning('Config file saving failed, not replacing %s with %s.', str(self.config_file), tmpfile.name)
|