diff --git a/LastFM/local/accountsdb.py b/LastFM/local/accountsdb.py index 53355fb..ef74dac 100644 --- a/LastFM/local/accountsdb.py +++ b/LastFM/local/accountsdb.py @@ -1,4 +1,4 @@ -# Autogenerated by update-modules.py on Sat Mar 9 11:14:30 2019 - DO NOT EDIT THIS COPY DIRECTLY! +# Autogenerated by update-modules.py on Sat Mar 9 12:35:58 2019 - DO NOT EDIT THIS COPY DIRECTLY! ### # Copyright (c) 2019, James Lu # All rights reserved. @@ -33,6 +33,7 @@ accountsdb: Provides storage for user-specific data via Supybot accounts, ident@ """ import pickle +import os from supybot import ircdb, log, conf, registry @@ -92,7 +93,7 @@ class AccountsDB(): pickle.dump(self.db, f, 2) os.rename(tmp_filename, self.filename) except Exception as e: - log.warning('%s: Unable to write database: %s', self._plugin_name, e) + log.exception('%s: Unable to write database: %s', self._plugin_name, e) def _get_key(self, prefix): nick, identhost = prefix.split('!', 1) diff --git a/NuWeather/local/accountsdb.py b/NuWeather/local/accountsdb.py index 53355fb..ef74dac 100644 --- a/NuWeather/local/accountsdb.py +++ b/NuWeather/local/accountsdb.py @@ -1,4 +1,4 @@ -# Autogenerated by update-modules.py on Sat Mar 9 11:14:30 2019 - DO NOT EDIT THIS COPY DIRECTLY! +# Autogenerated by update-modules.py on Sat Mar 9 12:35:58 2019 - DO NOT EDIT THIS COPY DIRECTLY! ### # Copyright (c) 2019, James Lu # All rights reserved. @@ -33,6 +33,7 @@ accountsdb: Provides storage for user-specific data via Supybot accounts, ident@ """ import pickle +import os from supybot import ircdb, log, conf, registry @@ -92,7 +93,7 @@ class AccountsDB(): pickle.dump(self.db, f, 2) os.rename(tmp_filename, self.filename) except Exception as e: - log.warning('%s: Unable to write database: %s', self._plugin_name, e) + log.exception('%s: Unable to write database: %s', self._plugin_name, e) def _get_key(self, prefix): nick, identhost = prefix.split('!', 1) diff --git a/accountsdb.py b/accountsdb.py index 53c198e..2460794 100644 --- a/accountsdb.py +++ b/accountsdb.py @@ -32,6 +32,7 @@ accountsdb: Provides storage for user-specific data via Supybot accounts, ident@ """ import pickle +import os from supybot import ircdb, log, conf, registry @@ -91,7 +92,7 @@ class AccountsDB(): pickle.dump(self.db, f, 2) os.rename(tmp_filename, self.filename) except Exception as e: - log.warning('%s: Unable to write database: %s', self._plugin_name, e) + log.exception('%s: Unable to write database: %s', self._plugin_name, e) def _get_key(self, prefix): nick, identhost = prefix.split('!', 1)