summaryrefslogtreecommitdiff
path: root/service/pixelated
diff options
context:
space:
mode:
authorThais Siqueira <thais.siqueira@gmail.com>2017-03-15 11:14:59 -0300
committerThais Siqueira <thais.siqueira@gmail.com>2017-03-15 11:17:02 -0300
commit69cb3dac9142540d48c644a6367afc0a3cdbdb44 (patch)
tree291968d754be7af32ac083fc4283bb2a99905626 /service/pixelated
parentf904bf312c08dfb0c81783e892560e49a5d87221 (diff)
[#924] Logs warning when saving recovery code.
with @anikarni
Diffstat (limited to 'service/pixelated')
-rw-r--r--service/pixelated/account_recovery.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/service/pixelated/account_recovery.py b/service/pixelated/account_recovery.py
index 405b572a..39614b4c 100644
--- a/service/pixelated/account_recovery.py
+++ b/service/pixelated/account_recovery.py
@@ -14,7 +14,9 @@
# You should have received a copy of the GNU Affero General Public License
# along with Pixelated. If not, see <http://www.gnu.org/licenses/>.
from twisted.internet.defer import inlineCallbacks, returnValue
-import traceback
+from twisted.logger import Logger
+
+log = Logger()
class AccountRecovery(object):
@@ -27,5 +29,5 @@ class AccountRecovery(object):
response = yield self._session.update_recovery_code(recovery_code)
returnValue(response)
except Exception as e:
- traceback.print_exc(e)
+ log.warn('Something went wrong when trying to save the recovery code')
raise