From 1bc7134ec26959f7f6d663d086f0616177694ae1 Mon Sep 17 00:00:00 2001
From: Ozzieisaacs <ozzie.fernandez.isaacs@googlemail.com>
Date: Wed, 13 May 2020 20:04:43 +0200
Subject: [PATCH] Fix error 500 on reset password in debug mode

---
 cps/admin.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cps/admin.py b/cps/admin.py
index 5cec8e26..ccfef4e1 100644
--- a/cps/admin.py
+++ b/cps/admin.py
@@ -939,7 +939,7 @@ def reset_user_password(user_id):
     if current_user is not None and current_user.is_authenticated:
         ret, message = reset_password(user_id)
         if ret == 1:
-            log.debug(u"Password for user %(user)s reset", user=message)
+            log.debug(u"Password for user %s reset", message)
             flash(_(u"Password for user %(user)s reset", user=message), category="success")
         elif ret == 0:
             log.error(u"An unknown error occurred. Please try again later.")