diff --git a/LastFM/local/accountsdb.py b/LastFM/local/accountsdb.py index ef74dac..1b7dc43 100644 --- a/LastFM/local/accountsdb.py +++ b/LastFM/local/accountsdb.py @@ -1,4 +1,4 @@ -# Autogenerated by update-modules.py on Sat Mar 9 12:35:58 2019 - DO NOT EDIT THIS COPY DIRECTLY! +# Autogenerated by update-modules.py on Thu Apr 27 23:26:05 2023 - DO NOT EDIT THIS COPY DIRECTLY! ### # Copyright (c) 2019, James Lu # All rights reserved. @@ -91,7 +91,7 @@ class AccountsDB(): try: with open(tmp_filename, 'wb') as f: pickle.dump(self.db, f, 2) - os.rename(tmp_filename, self.filename) + shutil.move(tmp_filename, self.filename) except Exception as e: log.exception('%s: Unable to write database: %s', self._plugin_name, e) diff --git a/NuWeather/local/accountsdb.py b/NuWeather/local/accountsdb.py index ef74dac..1b7dc43 100644 --- a/NuWeather/local/accountsdb.py +++ b/NuWeather/local/accountsdb.py @@ -1,4 +1,4 @@ -# Autogenerated by update-modules.py on Sat Mar 9 12:35:58 2019 - DO NOT EDIT THIS COPY DIRECTLY! +# Autogenerated by update-modules.py on Thu Apr 27 23:26:05 2023 - DO NOT EDIT THIS COPY DIRECTLY! ### # Copyright (c) 2019, James Lu # All rights reserved. @@ -91,7 +91,7 @@ class AccountsDB(): try: with open(tmp_filename, 'wb') as f: pickle.dump(self.db, f, 2) - os.rename(tmp_filename, self.filename) + shutil.move(tmp_filename, self.filename) except Exception as e: log.exception('%s: Unable to write database: %s', self._plugin_name, e) diff --git a/accountsdb.py b/accountsdb.py index 2460794..3d9dd7d 100644 --- a/accountsdb.py +++ b/accountsdb.py @@ -90,7 +90,7 @@ class AccountsDB(): try: with open(tmp_filename, 'wb') as f: pickle.dump(self.db, f, 2) - os.rename(tmp_filename, self.filename) + shutil.move(tmp_filename, self.filename) except Exception as e: log.exception('%s: Unable to write database: %s', self._plugin_name, e)